Since this is something that we'll probably be doing for most games, there are some handy thread-safe queue functions in the PG Utilities library. This turns out to be pretty simple. We simply remove events, post them, and free them until there are no more events left. A lot of work. It compiles with just a warning or two.
Games are a bit dull without sound though.
So, next article we'll figure out how we can get sound into our Doom port. QNX Software Systems Ltd. All other trademarks belong to their respective owners.