aboutsummaryrefslogtreecommitdiff
path: root/common/osd_message_queue.cpp
AgeCommit message (Collapse)Author
2016-10-29COMMON: Add referencing and destruction of the OSDMessageQueue instanceThierry Crozat
Registering the OSDMessageQueue instance as an event source is now done right after the event manager is initialised. This ensures that it is created in a sensible place and not for example in another thread). Also registering the event source is moved to a separate function instead of being in the constructor to remove any issue in case some code tries to display a OSD Message very early on (the instance would be created then, but it would be registered as an event source later).
2016-10-29COMMON: Add OSDMessageQueue singletonThierry Crozat
This class can be used to get messages to display on the OSD from any thread. Those messages are then passed to the backend in the graphic thread.