ReactOS  0.4.14-dev-583-g2a1ba2c
reentrant.h File Reference
#include <libc_private.h>
#include <stdlib.h>
Include dependency graph for reentrant.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define mutex_t   CRITICAL_SECTION
 
#define cond_t   CONDITION_VARIABLE
 
#define rwlock_t   SRWLOCK
 
#define thread_key_t   DWORD
 
#define MUTEX_INITIALIZER   -1 /*THIS_NEEDS_HELP*/
 
#define RWLOCK_INITIALIZER   -1 /*THIS_NEEDS_HELP*/
 
#define mutex_init(m, a)   InitializeCriticalSection(m)
 
#define mutex_lock(m)   EnterCriticalSection(m)
 
#define mutex_unlock(m)   LeaveCriticalSection(m)
 
#define mutex_trylock(m)   TryEnterCriticalSection(m)
 
#define cond_init(c, a, p)   InitializeConditionVariable(c)
 
#define cond_signal(m)   WakeConditionVariable(m)
 
#define cond_broadcast(m)   WakeAllConditionVariable(m)
 
#define cond_wait(c, m)   SleepConditionVariableCS(c, m, INFINITE)
 
#define cond_wait_timed(c, m, t)   SleepConditionVariableCS(c, m, t)
 
#define rwlock_init(l, a)   InitializeSRWLock(l)
 
#define rwlock_rdlock(l)   AcquireSRWLockShared(l)
 
#define rwlock_wrlock(l)   AcquireSRWLockExclusive(l)
 
#define rwlock_unlock(l)   ReleaseSRWLockExclusive(l)
 
#define thr_keycreate(k, d)   ((*k) = TlsAlloc())
 
#define thr_keydelete(k)   TlsFree(k)
 
#define thr_setspecific(k, p)   TlsSetValue(k, p)
 
#define thr_getspecific(k)   TlsGetValue(k)
 
#define thr_sigsetmask(f, n, o)   dunno_sigmask(f, n, o)
 
#define thr_self()   GetCurrentThreadId()
 
#define thr_exit(x)   ExitThread(x)
 

Macro Definition Documentation

◆ cond_broadcast

#define cond_broadcast (   m)    WakeAllConditionVariable(m)

Definition at line 134 of file reentrant.h.

◆ cond_init

#define cond_init (   c,
  a,
  p 
)    InitializeConditionVariable(c)

Definition at line 132 of file reentrant.h.

◆ cond_signal

#define cond_signal (   m)    WakeConditionVariable(m)

Definition at line 133 of file reentrant.h.

◆ cond_t

#define cond_t   CONDITION_VARIABLE

Definition at line 120 of file reentrant.h.

◆ cond_wait

#define cond_wait (   c,
  m 
)    SleepConditionVariableCS(c, m, INFINITE)

Definition at line 135 of file reentrant.h.

◆ cond_wait_timed

#define cond_wait_timed (   c,
  m,
  t 
)    SleepConditionVariableCS(c, m, t)

Definition at line 136 of file reentrant.h.

◆ mutex_init

#define mutex_init (   m,
  a 
)    InitializeCriticalSection(m)

Definition at line 127 of file reentrant.h.

◆ MUTEX_INITIALIZER

#define MUTEX_INITIALIZER   -1 /*THIS_NEEDS_HELP*/

Definition at line 125 of file reentrant.h.

◆ mutex_lock

#define mutex_lock (   m)    EnterCriticalSection(m)

Definition at line 128 of file reentrant.h.

◆ mutex_t

Definition at line 119 of file reentrant.h.

◆ mutex_trylock

#define mutex_trylock (   m)    TryEnterCriticalSection(m)

Definition at line 130 of file reentrant.h.

◆ mutex_unlock

#define mutex_unlock (   m)    LeaveCriticalSection(m)

Definition at line 129 of file reentrant.h.

◆ rwlock_init

#define rwlock_init (   l,
  a 
)    InitializeSRWLock(l)

Definition at line 138 of file reentrant.h.

◆ RWLOCK_INITIALIZER

#define RWLOCK_INITIALIZER   -1 /*THIS_NEEDS_HELP*/

Definition at line 126 of file reentrant.h.

◆ rwlock_rdlock

#define rwlock_rdlock (   l)    AcquireSRWLockShared(l)

Definition at line 139 of file reentrant.h.

◆ rwlock_t

#define rwlock_t   SRWLOCK

Definition at line 121 of file reentrant.h.

◆ rwlock_unlock

#define rwlock_unlock (   l)    ReleaseSRWLockExclusive(l)

Definition at line 142 of file reentrant.h.

◆ rwlock_wrlock

#define rwlock_wrlock (   l)    AcquireSRWLockExclusive(l)

Definition at line 140 of file reentrant.h.

◆ thr_exit

#define thr_exit (   x)    ExitThread(x)

Definition at line 151 of file reentrant.h.

◆ thr_getspecific

#define thr_getspecific (   k)    TlsGetValue(k)

Definition at line 147 of file reentrant.h.

◆ thr_keycreate

#define thr_keycreate (   k,
  d 
)    ((*k) = TlsAlloc())

Definition at line 144 of file reentrant.h.

◆ thr_keydelete

#define thr_keydelete (   k)    TlsFree(k)

Definition at line 145 of file reentrant.h.

◆ thr_self

#define thr_self ( )    GetCurrentThreadId()

Definition at line 150 of file reentrant.h.

◆ thr_setspecific

#define thr_setspecific (   k,
  p 
)    TlsSetValue(k, p)

Definition at line 146 of file reentrant.h.

◆ thr_sigsetmask

#define thr_sigsetmask (   f,
  n,
 
)    dunno_sigmask(f, n, o)

Definition at line 148 of file reentrant.h.

◆ thread_key_t

#define thread_key_t   DWORD

Definition at line 124 of file reentrant.h.