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

Comparing IO-AIO/xthread.h (file contents):
Revision 1.3 by root, Sun Jul 8 11:05:36 2007 UTC vs.
Revision 1.4 by root, Sun Jul 8 11:12:15 2007 UTC

75 *tid = 0; 75 *tid = 0;
76 CreateThread (0, 4096, proc, arg, 0, tid); 76 CreateThread (0, 4096, proc, arg, 0, tid);
77 return !!*tid; 77 return !!*tid;
78} 78}
79 79
80#define respipe_read(a,b,c) PerlSock_recv ((a), (b), (c), 0)
81#define respipe_write(a,b,c) send ((a), (b), (c), 0)
82#define respipe_close(a) PerlSock_closesocket ((a))
83
80#else 84#else
81///////////////////////////////////////////////////////////////////////////// 85/////////////////////////////////////////////////////////////////////////////
82 86
83/* solaris */ 87/* solaris */
84#define _POSIX_PTHREAD_SEMANTICS 1 88#define _POSIX_PTHREAD_SEMANTICS 1
134 pthread_sigmask (SIG_SETMASK, &oldsigset, 0); 138 pthread_sigmask (SIG_SETMASK, &oldsigset, 0);
135 139
136 return retval; 140 return retval;
137} 141}
138 142
143#define respipe_read(a,b,c) read ((a), (b), (c))
144#define respipe_write(a,b,c) write ((a), (b), (c))
145#define respipe_close(a) close ((a))
146
139#endif 147#endif
140 148
141 149
142 150

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines