Implement Queue
* Implement Queue which provides a flow control mechanism for data transmission between modules. This queue streaming data with EnqueueCallback and DequeueCallback based on the reactor pattern. Enqueue end should register callback when data is ready to be sent and unregister when no data ready to send. Dequeue end should register callback when ready to handle data and unregister when not ready to handle data. * Implement ReactiveSemaphore, a wrapper for an event_fd work in non-blocking and Semaphore mode used by Queue to handle readable signal in the reactor pattern. Test: run bluetooth_test_gd Change-Id: Ia7019cdbe271d193c92f1a0b405ecced41a2d84b
Loading
Please register or sign in to comment