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

Comparing libeio/xthread.h (file contents):
Revision 1.2 by root, Mon May 12 12:36:21 2008 UTC vs.
Revision 1.3 by root, Mon May 12 16:19:42 2008 UTC

53#define X_THREAD_ATFORK(a,b,c) 53#define X_THREAD_ATFORK(a,b,c)
54 54
55static int 55static int
56thread_create (thread_t *tid, void *(*proc)(void *), void *arg) 56thread_create (thread_t *tid, void *(*proc)(void *), void *arg)
57{ 57{
58 int res; 58 int retval;
59 pthread_attr_t attr; 59 pthread_attr_t attr;
60 60
61 pthread_attr_init (&attr); 61 pthread_attr_init (&attr);
62 pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED); 62 pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);
63 63
64 res = pthread_create (tid, &attr, proc, arg) == 0; 64 retval = pthread_create (tid, &attr, proc, arg) == 0;
65 65
66 pthread_attr_destroy (&attr); 66 pthread_attr_destroy (&attr);
67 67
68 return res; 68 return retval;
69} 69}
70 70
71#define respipe_read(a,b,c) PerlSock_recv ((a), (b), (c), 0) 71#define respipe_read(a,b,c) PerlSock_recv ((a), (b), (c), 0)
72#define respipe_write(a,b,c) send ((a), (b), (c), 0) 72#define respipe_write(a,b,c) send ((a), (b), (c), 0)
73#define respipe_close(a) PerlSock_closesocket ((a)) 73#define respipe_close(a) PerlSock_closesocket ((a))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines