38#if !defined(BRLCADBUILD)
39# error "Warning: included bu/tc.h (compile-time API) without BRLCADBUILD defined"
41#if !defined(HAVE_CONFIG_H)
42# error "Warning: included bu/tc.h (compile-time API) without HAVE_CONFIG_H defined"
51#if defined(HAVE_PTHREAD_H)
54#if defined(HAVE_WINDOWS_H)
56# include <sys/timeb.h>
59#define bu_thrd_error 0
60#define bu_thrd_success 1
61#define bu_thrd_timedout 2
63#define bu_thrd_nomem 4
66#if defined(HAVE_WINDOWS_H)
73#if defined(HAVE_WINDOWS_H)
88#if defined(HAVE_WINDOWS_H)
91 unsigned int mWaitersCount;
92 CRITICAL_SECTION mWaitersCountLock;
Header file for the BRL-CAD common definitions.
int bu_cnd_wait(bu_cnd_t *cond, bu_mtx_t *mtx)
int bu_cnd_init(bu_cnd_t *cond)
void bu_mtx_destroy(bu_mtx_t *mtx)
int bu_cnd_signal(bu_cnd_t *cond)
int bu_cnd_broadcast(bu_cnd_t *cond)
int bu_mtx_lock(bu_mtx_t *mtx)
int(* bu_thrd_start_t)(void *arg)
int bu_mtx_init(bu_mtx_t *mtx)
int bu_mtx_unlock(bu_mtx_t *mtx)
int bu_mtx_trylock(bu_mtx_t *mtx)
int bu_thrd_join(bu_thrd_t thr, int *res)
void bu_cnd_destroy(bu_cnd_t *cond)
int bu_thrd_create(bu_thrd_t *thr, bu_thrd_start_t func, void *arg)