shithub: npe

ref: ba4b0723d9e6d6ec72ca54016a932e72fbae46f7
dir: /libnpe_pthread/_pthread.h/

View raw version
#include <npe.h>
#include <pthread.h>
#include <thread.h>

typedef struct npe_pthread_t npe_pthread_t;

struct pthread_attr_t {
	unsigned stack_size;
};

struct pthread_cond_t {
	Rendez;
	QLock lock;
};

struct pthread_once_t {
	QLock;
	int done;
};

struct pthread_mutex_t {
	QLock;
};

struct npe_pthread_t {
	void *waitchan;
	void *(*func)(void*);
	void *arg;
	int pid;
};