Question

I encountered a bug that has me beat. Fortunately, I found a work around here (not necessary reading to answer this q) -

http://lists.apple.com/archives/quartz-dev/2009/Oct/msg00088.html

The problem is, I don't understand all of it. I am ok with the event taps etc, but I am supposed to 'set up a thread-safe queue) using MPQueue, add events to it pull them back off later.

Can anyone tell me what an MPQueue is, and how I create one - also how to add items and read/remove items? Google hasn't helped at all.

Was it helpful?

Solution

It's one of the Multiprocessing Services APIs.

… [A] message queue… can be used to notify (that is, send) and wait for (that is, receive) messages consisting of three pointer-sized values in a preemptively safe manner.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top