At its heart, a message pump is just a thread waiting for an event. Upon receipt of the event, some state data will instruct the thread how to proceed. In this article, we'll manage the state data by enqueuing and dequeuing task objects on a queue. The event is triggered by the producer thread once a task item has been enqueued. Many threads may add task items to the queue, but one thread reads from it.
Recent comments
31 weeks 5 days ago
31 weeks 5 days ago
35 weeks 1 day ago
40 weeks 6 days ago
49 weeks 5 days ago