libthread: simplify

Now that everything uses pthreads and pthreadperthread,
can delete various conditionals, all the custom context code,
and so on. Also update documents.

Fixes #355.
This commit is contained in:
Russ Cox 2020-12-30 07:18:30 -05:00
parent e68f07d46f
commit 1857120806
23 changed files with 16 additions and 1481 deletions

View file

@ -473,10 +473,8 @@ extern _Thread *(*threadnow)(void);
typedef struct Lock Lock;
struct Lock
{
#ifdef PLAN9PORT_USING_PTHREADS
int init;
pthread_mutex_t mutex;
#endif
int held;
};