|
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
[Prev in Thread] | Current Thread | [Next in Thread] |