From 0894f96f89e0e44bdf2921e6cd51fca429bf9802 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 20 Jun 2019 04:16:20 +0200 Subject: windows-thread: New module. * lib/windows-thread.h: New file, based on lib/glthread/thread.h. * lib/windows-thread.c: New file, based on lib/glthread/thread.c. * lib/glthread/thread.h: Include windows-thread.h. (gl_thread_t): Define using glwthread_thread_t. (glthread_create): Define using glwthread_thread_create. (glthread_join): Define using glwthread_thread_join. (gl_thread_self): Define using glwthread_thread_self. (gl_thread_exit): Define using glwthread_thread_exit. (glthread_create_func, glthread_join_func, gl_thread_self_func, gl_thread_exit_func): Remove declarations. * lib/glthread/thread.c (self_key): Remove variable. (do_init_self_key, init_self_key): Remove functions. (struct gl_thread_struct): Remove type. (get_current_thread_handle, gl_thread_self_func, wrapper_func, glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove functions. * modules/windows-thread: New file. * modules/thread (Depends-on): Add windows-thread. --- modules/windows-thread | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 modules/windows-thread (limited to 'modules/windows-thread') diff --git a/modules/windows-thread b/modules/windows-thread new file mode 100644 index 0000000000..3f353446e6 --- /dev/null +++ b/modules/windows-thread @@ -0,0 +1,28 @@ +Description: +Creating and controlling threads (native Windows implementation). + +Files: +lib/windows-thread.h +lib/windows-thread.c + +Depends-on: +windows-once + +configure.ac: +AC_REQUIRE([AC_CANONICAL_HOST]) +case "$host_os" in + mingw*) + AC_LIBOBJ([windows-thread]) + ;; +esac + +Makefile.am: + +Include: +"windows-thread.h" + +License: +LGPLv2+ + +Maintainer: +all -- cgit v1.2.1