Lines Matching refs:Mutex
42 #define SC_MTX_INIT_( Mutex ) \
43 InitializeCriticalSection( &(Mutex) )
44 #define SC_MTX_LOCK_( Mutex ) \
45 EnterCriticalSection( &(Mutex) )
46 #define SC_MTX_UNLOCK_( Mutex ) \
47 LeaveCriticalSection( &(Mutex) )
48 #define SC_MTX_TRYLOCK_( Mutex ) \
49 ( TryEnterCriticalSection( &(Mutex) ) != 0 )
50 #define SC_MTX_DESTROY_( Mutex ) \
51 DeleteCriticalSection( &(Mutex) )
64 #define SC_MTX_INIT_( Mutex ) \
65 pthread_mutex_init( &(Mutex), SC_PTHREAD_NULL_ )
66 #define SC_MTX_LOCK_( Mutex ) \
67 pthread_mutex_lock( &(Mutex) )
68 #define SC_MTX_UNLOCK_( Mutex ) \
69 pthread_mutex_unlock( &(Mutex) )
72 # define SC_MTX_TRYLOCK_( Mutex ) \
73 ( pthread_mutex_trylock( &(Mutex) ) == 0 )
75 # define SC_MTX_TRYLOCK_( Mutex ) \
79 #define SC_MTX_DESTROY_( Mutex ) \
80 pthread_mutex_destroy( &(Mutex) )