mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[kernel] Add channel objects
Add the channel object for sending messages between threads. Currently no good of passing channels to other threads, but global variables in a single process work. Currently channels are slow and do double copies, need to refine more. Tags: ipc
This commit is contained in:
@@ -13,6 +13,11 @@
|
||||
// Thread signals
|
||||
#define j6_signal_thread_exit (1ull << 16)
|
||||
|
||||
// Channel signals
|
||||
#define j6_signal_channel_closed (1ull << 16)
|
||||
#define j6_signal_channel_can_send (1ull << 17)
|
||||
#define j6_signal_channel_can_recv (1ull << 18)
|
||||
|
||||
// Signals 48-63 are user-defined signals
|
||||
#define j6_signal_user0 (1ull << 48)
|
||||
#define j6_signal_user1 (1ull << 49)
|
||||
|
||||
Reference in New Issue
Block a user