dxEventBus
1. Overview
This module is part of the official system module library of dejaOS, used for multi-threaded event communication between the main thread and Worker sub-threads. It uses the main thread as a message relay, enabling a full-duplex event notification mechanism across all threads. Additionally, it includes a built-in RPC (Remote Procedure Call) mechanism based on the event bus, supporting safe cross-thread function calls.
- Supports communication between Worker threads via the main thread.
- Supports main-to-worker, worker-to-main, and intra-main-thread communication.
- Supports dynamic creation and termination of event-aware Workers.
- [New] Built-in RPC module supporting cross-thread request/response calls and asynchronous notifications.