Go to the documentation of this file.Go to the SVN repository for this file.
33 #define int2ptr(i) ((void*)(((char*)0)+(i)))
34 #define ptr2int(p) ((int)(((char*)(p))-((char*)0)))
36 #if !defined(TDS_NO_THREADSAFE)
38 static tds_mutex
mtx = TDS_MUTEX_INITIALIZER;
42 tds_mutex *
mtx = (tds_mutex *) arg;
63 fprintf(stderr,
"mutex should be unlocked\n");
69 fprintf(stderr,
"mutex should be locked\n");
75 fprintf(stderr,
"error creating thread\n");
80 fprintf(stderr,
"error waiting thread\n");
85 fprintf(stderr,
"mutex should be locked inside thread\n");
100 fprintf(stderr,
"error creating mutex\n");
108 fprintf(stderr,
"error creating mutex\n");
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n th
static void test(tds_mutex *mtx)
static TDS_THREAD_PROC_DECLARE(trylock_proc, arg)
#define tds_mutex_trylock(x)
#define tds_thread_create(ret, proc, arg)
#define tds_mutex_free(x)
#define tds_mutex_unlock(x)
#define tds_mutex_init(x)
#define tds_thread_join(th, ret)