1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-24 11:14:48 +00:00

Work on thread/receive doubling as select.

This commit is contained in:
Calvin Rose
2019-12-04 22:31:01 -06:00
parent fd4220f254
commit e908029392
3 changed files with 65 additions and 16 deletions

View File

@@ -946,9 +946,9 @@ typedef struct JanetChannel JanetChannel;
struct JanetChannel {
pthread_mutex_t lock;
pthread_cond_t *rx_cond;
pthread_mutex_t *rx_lock;
JanetBuffer buf;
int refCount;
int mailboxFlag;
};
struct JanetThread {
JanetChannel *rx;