improve thread signal support, still far from good

This commit is contained in:
U-w7\vsc
2013-11-04 15:31:26 +00:00
parent a9b025e6a1
commit f2b90a1bb0
6 changed files with 57 additions and 2 deletions

View File

@@ -28,7 +28,6 @@ extern int recursiveMutexInit(recursiveMutex *m);
#define recursiveMutexTryLock(p) pthread_mutex_trylock(p)
#define recursiveMutexUnlock(p) pthread_mutex_unlock(p)
#define IF_MT(id, g) if ( id == L_THREAD || GD->thread.enabled ) g
typedef struct counting_mutex
{ simpleMutex mutex; /* mutex itself */
@@ -82,7 +81,7 @@ We assume id == L_THREAD is optimized away if id is known at
compile-time
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#define IF_MT(id, g) if ( id == L_THREAD || GD->thread.enabled ) g
#define IF_MT(id, g) if ( id == L_THREAD ) g
#ifdef O_CONTENTION_STATISTICS
#define countingMutexLock(cm) \