Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lwt/lwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ struct lwt_tcb{ //thread control block;
void* data;
int id;//we may keep a lwt_t array or pool to store all lwt with id as its index, and a current queue to store ids for all currently living lwt
lwt_status_t tcb_status;
int queue_index;
};

typedef struct lwt_tcb* lwt_t; //a pointer to tcb, use it as pthread_t
Expand Down Expand Up @@ -70,4 +71,5 @@ void *__lwt_stack_get(void);

void __lwt_stack_return(void *stk);

void __lwt_dequeue(lwt_t thd);
#endif