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

Comparing libeio/xthread.h (file contents):
Revision 1.10 by root, Tue Feb 15 03:15:16 2011 UTC vs.
Revision 1.12 by root, Thu Jul 14 19:34:39 2011 UTC

1#ifndef XTHREAD_H_ 1#ifndef XTHREAD_H_
2#define XTHREAD_H_ 2#define XTHREAD_H_
3 3
4/* whether word reads are potentially non-atomic. 4/* whether word reads are potentially non-atomic.
5 * this is conservatice, likely most arches this runs 5 * this is conservative, likely most arches this runs
6 * on have atomic word read/writes. 6 * on have atomic word read/writes.
7 */ 7 */
8#ifndef WORDACCESS_UNSAFE 8#ifndef WORDACCESS_UNSAFE
9# if __i386 || __x86_64 9# if __i386 || __x86_64
10# define WORDACCESS_UNSAFE 0 10# define WORDACCESS_UNSAFE 0
128#ifndef PTHREAD_STACK_MIN 128#ifndef PTHREAD_STACK_MIN
129# define PTHREAD_STACK_MIN 0 129# define PTHREAD_STACK_MIN 0
130#endif 130#endif
131 131
132#ifndef X_STACKSIZE 132#ifndef X_STACKSIZE
133# define X_STACKSIZE sizeof (long) * 4096 133# define X_STACKSIZE sizeof (void *) * 4096
134#endif 134#endif
135 135
136static int 136static int
137thread_create (xthread_t *tid, void *(*proc)(void *), void *arg) 137thread_create (xthread_t *tid, void *(*proc)(void *), void *arg)
138{ 138{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines