ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/xthread.h
(Generate patch)

Comparing libeio/xthread.h (file contents):
Revision 1.14 by root, Tue Jul 19 05:12:16 2011 UTC vs.
Revision 1.15 by root, Tue Apr 24 18:47:50 2012 UTC

45#define X_COND_SIGNAL(cond) pthread_cond_signal (&(cond)) 45#define X_COND_SIGNAL(cond) pthread_cond_signal (&(cond))
46#define X_COND_WAIT(cond,mutex) pthread_cond_wait (&(cond), &(mutex)) 46#define X_COND_WAIT(cond,mutex) pthread_cond_wait (&(cond), &(mutex))
47#define X_COND_TIMEDWAIT(cond,mutex,to) pthread_cond_timedwait (&(cond), &(mutex), &(to)) 47#define X_COND_TIMEDWAIT(cond,mutex,to) pthread_cond_timedwait (&(cond), &(mutex), &(to))
48 48
49typedef pthread_t xthread_t; 49typedef pthread_t xthread_t;
50#define X_THREAD_PROC(name) void *name (void *thr_arg) 50#define X_THREAD_PROC(name) static void *name (void *thr_arg)
51#define X_THREAD_ATFORK(a,b,c) 51#define X_THREAD_ATFORK(a,b,c)
52 52
53static int 53static int
54thread_create (xthread_t *tid, void *(*proc)(void *), void *arg) 54thread_create (xthread_t *tid, void *(*proc)(void *), void *arg)
55{ 55{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines