|
VR-Engage
2.3
|
DtVreMessageManager no longer provides init(), tick(double), or sendMessage(). Register each dispatch thread with initDispatchThread(bool), passing true on the main thread. Call dispatchTick(double) in each registered thread's loop and shutdownDispatchThread() before it exits. Replace sendMessage() with sendMessageAsap() when immediate delivery on the current thread is needed. Use queueMessage() when all delivery can wait for a dispatch tick.
Handlers now run on the registered thread that calls addHandler(). Handlers registered from an unregistered thread run on the main dispatch thread. sendMessageAsap() queues delivery to handlers on other threads; it does not call those handlers immediately. Review code that depends on message ordering or handler thread affinity.
DtVreMessageDelegate moved from vreMessageManager/vreMessage.h to vreMessageManager/vreMessageManager.h. Include the latter header when using the delegate directly.
DtVreMessageHandler tracks its handler registrations and disconnects them when the handler is destroyed. DtVreMessageHandlerGroup owns multiple handlers with the same lifetime. Use these classes when a component or another object owns message subscriptions. Both are declared in vreMessageManager/vreMessageManager.h.