Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 194 => git log
- commit 0e5c7c46354f4b6e9f6bd9b47de51432735a5e98
- Merge: 27a388e 5bd1c04
- Author: Michael Richardson <mcr@sandelman.ca>
- Date: Mon Oct 26 11:17:11 2015 -0400
- Merge pull request #15 from bradjc/fix-queue
- Update main loop to new queue API
- commit 5bd1c04d0c6ff97dd1c40c3ecc5a745649225198
- Author: Brad Campbell <bradjc5@gmail.com>
- Date: Mon Oct 26 01:56:39 2015 -0400
- update main loop to new queue API
- Calling `peek_event()` when the `things_to_do` queue is empty
- trips a Boost assertion. This update checks to make sure there is
- something in the queue before calling `peek_event()`.
- Also, `eat_event()` calls `pop()` on the queue, which removes the item
- from the queue. However, it doesn't update the internal state of the
- item, in particular it doesn't un-mark the item as in a queue. Later on,
- this causes the `reenqueue()` function to not re-add the item to the
- queue, causing the event to never get triggered again. To fix this, we
- update the state of the event after calling `eat_event()`.
- commit 27a388e7ba662c45feab7b357d0e5a8ac603a020
- Author: Michael Richardson <mcr@sandelman.ca>
- Date: Mon Oct 19 16:45:34 2015 -0400
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement