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

Comparing libeio/xthread.h (file contents):
Revision 1.4 by root, Tue May 13 19:34:11 2008 UTC vs.
Revision 1.5 by root, Tue May 20 05:50:49 2008 UTC

111 111
112typedef pthread_t thread_t; 112typedef pthread_t thread_t;
113#define X_THREAD_PROC(name) static void *name (void *thr_arg) 113#define X_THREAD_PROC(name) static void *name (void *thr_arg)
114#define X_THREAD_ATFORK(prepare,parent,child) pthread_atfork (prepare, parent, child) 114#define X_THREAD_ATFORK(prepare,parent,child) pthread_atfork (prepare, parent, child)
115 115
116// the broken bsd's once more
117#ifndef PTHREAD_STACK_MIN
118# define PTHREAD_STACK_MIN 0
119#endif
120
116static int 121static int
117thread_create (thread_t *tid, void *(*proc)(void *), void *arg) 122thread_create (thread_t *tid, void *(*proc)(void *), void *arg)
118{ 123{
119 int retval; 124 int retval;
120 sigset_t fullsigset, oldsigset; 125 sigset_t fullsigset, oldsigset;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines