Continue switching library over to pthreads when possible.

Tprimes works on Linux 2.6.  You can only have 128 procs
though.
This commit is contained in:
rsc 2004-09-17 03:34:32 +00:00
parent 06bb4ed20d
commit bcf527a98e
15 changed files with 146 additions and 561 deletions

View file

@ -454,6 +454,7 @@ struct _Procrend
int asleep;
Lock *l;
void *arg;
int pid;
#ifdef PLAN9_PTHREADS
pthread_cond_t cond;
#endif

View file

@ -24,6 +24,7 @@ extern "C" {
#include <fmt.h>
#include <math.h>
#include <ctype.h> /* for tolower */
#include <pthread.h> /* for Locks */
/*
* OS-specific crap