NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions
thread.h File Reference

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  tds_raw_mutex
 
struct  tds_condition
 
struct  tds_thread
 

Macros

#define TDS_RAW_MUTEX_INITIALIZER   {}
 
#define tds_raw_cond_signal(cond)    FreeTDS_Condition_not_compiled
 
#define tds_raw_cond_wait(cond, mtx)    FreeTDS_Condition_not_compiled
 
#define tds_raw_cond_timedwait(cond, mtx, timeout_sec)    FreeTDS_Condition_not_compiled
 
#define TDS_THREAD_PROC_DECLARE(name, arg)    void *name(void *arg)
 
#define tds_thread_create(ret, proc, arg)    FreeTDS_Thread_not_compiled
 
#define tds_thread_create_detached(proc, arg)    FreeTDS_Thread_not_compiled
 
#define tds_thread_join(th, ret)    FreeTDS_Thread_not_compiled
 
#define tds_mutex_free(x)   do {} while (0)
 
#define tds_mutex_init(x)   tds_mutex_noop()
 
#define tds_mutex_lock(x)   tds_mutex_noop()
 
#define tds_mutex_trylock(x)   tds_mutex_noop()
 
#define tds_mutex_unlock(x)   do {} while (0)
 

Typedefs

typedef int tds_thread_id
 
typedef void *(* tds_thread_proc) (void *arg)
 

Functions

static void tds_raw_mutex_lock (tds_raw_mutex *mtx)
 
static int tds_raw_mutex_trylock (tds_raw_mutex *mtx)
 
static void tds_raw_mutex_unlock (tds_raw_mutex *mtx)
 
static int tds_raw_mutex_init (tds_raw_mutex *mtx)
 
static void tds_raw_mutex_free (tds_raw_mutex *mtx)
 
static int tds_raw_cond_init (tds_condition *cond)
 
static int tds_raw_cond_destroy (tds_condition *cond)
 
static tds_thread_id tds_thread_get_current_id (void)
 
static int tds_thread_is_current (tds_thread_id th)
 
static int tds_mutex_noop (void)
 

Macro Definition Documentation

◆ tds_mutex_free

#define tds_mutex_free (   x)    do {} while (0)

Definition at line 419 of file thread.h.

◆ tds_mutex_init

#define tds_mutex_init (   x)    tds_mutex_noop()

Definition at line 420 of file thread.h.

◆ tds_mutex_lock

#define tds_mutex_lock (   x)    tds_mutex_noop()

Definition at line 421 of file thread.h.

◆ tds_mutex_trylock

#define tds_mutex_trylock (   x)    tds_mutex_noop()

Definition at line 422 of file thread.h.

◆ tds_mutex_unlock

#define tds_mutex_unlock (   x)    do {} while (0)

Definition at line 423 of file thread.h.

◆ tds_raw_cond_signal

#define tds_raw_cond_signal (   cond)     FreeTDS_Condition_not_compiled

Definition at line 266 of file thread.h.

◆ tds_raw_cond_timedwait

#define tds_raw_cond_timedwait (   cond,
  mtx,
  timeout_sec 
)     FreeTDS_Condition_not_compiled

Definition at line 272 of file thread.h.

◆ tds_raw_cond_wait

#define tds_raw_cond_wait (   cond,
  mtx 
)     FreeTDS_Condition_not_compiled

Definition at line 269 of file thread.h.

◆ TDS_RAW_MUTEX_INITIALIZER

#define TDS_RAW_MUTEX_INITIALIZER   {}

Definition at line 231 of file thread.h.

◆ tds_thread_create

#define tds_thread_create (   ret,
  proc,
  arg 
)     FreeTDS_Thread_not_compiled

Definition at line 283 of file thread.h.

◆ tds_thread_create_detached

#define tds_thread_create_detached (   proc,
  arg 
)     FreeTDS_Thread_not_compiled

Definition at line 286 of file thread.h.

◆ tds_thread_join

#define tds_thread_join (   th,
  ret 
)     FreeTDS_Thread_not_compiled

Definition at line 289 of file thread.h.

◆ TDS_THREAD_PROC_DECLARE

#define TDS_THREAD_PROC_DECLARE (   name,
  arg 
)     void *name(void *arg)

Definition at line 280 of file thread.h.

Typedef Documentation

◆ tds_thread_id

typedef int tds_thread_id

Definition at line 277 of file thread.h.

◆ tds_thread_proc

typedef void*(* tds_thread_proc) (void *arg)

Definition at line 279 of file thread.h.

Function Documentation

◆ tds_mutex_noop()

static int tds_mutex_noop ( void  )
inlinestatic

Definition at line 415 of file thread.h.

◆ tds_raw_cond_destroy()

static int tds_raw_cond_destroy ( tds_condition cond)
inlinestatic

Definition at line 262 of file thread.h.

◆ tds_raw_cond_init()

static int tds_raw_cond_init ( tds_condition cond)
inlinestatic

Definition at line 258 of file thread.h.

◆ tds_raw_mutex_free()

static void tds_raw_mutex_free ( tds_raw_mutex mtx)
inlinestatic

Definition at line 251 of file thread.h.

◆ tds_raw_mutex_init()

static int tds_raw_mutex_init ( tds_raw_mutex mtx)
inlinestatic

Definition at line 246 of file thread.h.

◆ tds_raw_mutex_lock()

static void tds_raw_mutex_lock ( tds_raw_mutex mtx)
inlinestatic

Definition at line 233 of file thread.h.

◆ tds_raw_mutex_trylock()

static int tds_raw_mutex_trylock ( tds_raw_mutex mtx)
inlinestatic

Definition at line 237 of file thread.h.

◆ tds_raw_mutex_unlock()

static void tds_raw_mutex_unlock ( tds_raw_mutex mtx)
inlinestatic

Definition at line 242 of file thread.h.

◆ tds_thread_get_current_id()

static tds_thread_id tds_thread_get_current_id ( void  )
inlinestatic

Definition at line 292 of file thread.h.

Referenced by tdsdump_off().

◆ tds_thread_is_current()

static int tds_thread_is_current ( tds_thread_id  th)
inlinestatic

Definition at line 297 of file thread.h.

Referenced by current_thread_is_excluded().

Modified on Mon May 20 05:02:44 2024 by modify_doxy.py rev. 669887