bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: * lib/select.c: Make select() multi-thread safe in windows


From: Gisle Vanem
Subject: Re: * lib/select.c: Make select() multi-thread safe in windows
Date: Wed, 24 May 2017 10:58:36 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

Akash Rawal wrote:

+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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]