Discussion:
* lib/select.c: Make select() multi-thread safe in windows
(too old to reply)
Akash Rawal
2017-05-24 13:15:56 UTC
Permalink
Raw Message
AFAICS, you could use the stuff in
<Gnulib-root>/lib/glthread/*.c
Thanks a lot I was looking for something like this.

Please let me know if I am missing anything else.

Regards,
Akash Rawal
Gisle Vanem
2017-05-24 08:58:36 UTC
Permalink
Raw Message
+static HANDLE
+get_hevent()
+{
+ HANDLE res;
+
+ pthread_mutex_lock(&event_pool.lock);
Do you assume <pthread.h> and MinGW-w64 here?
Code like this will break in MSVC.

AFAICS, you could use the stuff in
<Gnulib-root>/lib/glthread/*.c

glthread_lock_lock_func() etc.
--
--gv
Loading...