Module mkit::thread [−][src]
Module thread
implement a generic multi-threading pattern.
It is inspired from gen-server model from Erlang, where by, every thread is expected to hold onto its own state, and handle all inter-thread communication via channels and message queues.
Structs
Thread | Thread type, providing gen-server pattern to do multi-threading. |
Enums
Tx | IPC type, that enumerates as either mpsc::Sender or, mpsc::SyncSender channel. |
Type Definitions
Rx | IPC type, that shall be passed to the thread’s main loop. |