[PATCH] [libc++] Allow libc++ to be built on systems without POSIX threads

Eric Fiselier eric at efcs.ca
Thu Aug 21 16:07:57 PDT 2014

Comment at: src/mutex.cpp:224-233
@@ -218,9 +223,11 @@
 __call_once(volatile unsigned long& flag, void* arg, void(*func)(void*))
     while (flag == 1)
         pthread_cond_wait(&cv, &mut);
     if (flag == 0)
Wouldn't it be a lot cleaner to just separate the two implementation entirely instead of interweaving them like this?


More information about the cfe-commits mailing list