Changes between Version 12 and Version 13 of Documentation/SystemQueue
- Timestamp:
- Jun 21, 2013, 3:07:11 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/SystemQueue
v12 v13 21 21 The !SystemQueue class has one main thread that uses {{{boost::condition}}} with the {{{wait}}} and {{{signal}}} functionality to implement a queue. The thread blocks and waits until a new event is inserted into the queue. It then executes this event and calls the event handler that is assigned to this event. The insertion and execution of an event therefore are decoupled in terms of threading and run asynchronous. 22 22 23 One example of events are imcoming network messages. When a packet comes in from the network a new event is generated and the packet attac ked to this event. The event is inserted into the !SystemQueue and gets processed asynchronous from the !SystemQueue thread.23 One example of events are imcoming network messages. When a packet comes in from the network a new event is generated and the packet attached to this event. The event is inserted into the !SystemQueue and gets processed asynchronous from the !SystemQueue thread. 24 24 25 25 == Using the !SystemQueue ==