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:
parent
06bb4ed20d
commit
bcf527a98e
15 changed files with 146 additions and 561 deletions
|
|
@ -454,6 +454,7 @@ struct _Procrend
|
|||
int asleep;
|
||||
Lock *l;
|
||||
void *arg;
|
||||
int pid;
|
||||
#ifdef PLAN9_PTHREADS
|
||||
pthread_cond_t cond;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue