Rewrite to remove dependence on rendezvous and its bizarre
data structures. Makes it easier to use pthreads too. Still need to add code for non-pthreads systems. Just a checkpoint to switch work to another machine.
This commit is contained in:
@@ -41,6 +41,8 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
|
||||
# undef _NEEDUSHORT
|
||||
# undef _NEEDUINT
|
||||
# undef _NEEDULONG
|
||||
# include <pthread.h>
|
||||
# define PLAN9_PTHREADS
|
||||
# endif
|
||||
#endif
|
||||
#if defined(__sun__)
|
||||
@@ -48,6 +50,8 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
|
||||
# undef _NEEDUSHORT
|
||||
# undef _NEEDUINT
|
||||
# undef _NEEDULONG
|
||||
# include <pthread.h>
|
||||
# define PLAN9_PTHREADS
|
||||
#endif
|
||||
#if defined(__FreeBSD__)
|
||||
# include <sys/types.h>
|
||||
@@ -61,8 +65,11 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
|
||||
# undef _NEEDUSHORT
|
||||
# undef _NEEDUINT
|
||||
# define _NEEDLL 1
|
||||
# include <pthread.h>
|
||||
# define PLAN9_PTHREADS
|
||||
#endif
|
||||
|
||||
|
||||
typedef signed char schar;
|
||||
typedef unsigned int u32int;
|
||||
typedef int s32int;
|
||||
|
||||
Reference in New Issue
Block a user