Added event callback functionality. EventManager now uses multiple mutexes to lock events, errors, callbacks, and downgradedThreads separately. Wrote single-threaded test for event callbacks.

This commit is contained in:
EricLiu2000
2019-08-02 15:00:31 -04:00
parent f9712a4bcd
commit 4f735a651c
5 changed files with 177 additions and 25 deletions
+1
View File
@@ -79,6 +79,7 @@ It is recommended to either enable message polling or manually register callback
Write Blocking Status
~~~~~~~~~~~~~~~~~~~~~~~
The write blocking status of the device determines the behavior of attempting to transmit to the device (likely via sending messages) with a large backlog of messages.
If write blocking is enabled, then the transmitting thread will wait for the entire buffer to be transmitted.
If write blocking is disabled, then the attempt to transmit will simply fail and an error will be logged on the calling thread.