For those of you who understand the subtleties, I had to do this without any kind of synchronization like semaphores or mailboxes or message pipes. Strictly flags and asynchronous logic.
There are still some issues that I think need to be addressed, but they're relatively minor compared to this one-- though one is going to be a pain in the ass because we don't have a messaging system between the two different operating systems.