I am designing a very high performance DSP app for Mac which need to process small chunks of data in real time, about every 2-4 ms. The program does not like being interrupted. For each slice of data processing, I use wxCriticalSection to protect certain data.
Browsing through the src\mac\carbon\thread.cpp source I notice some reference to MPServices being the mechanism for critical sections and mutexes. I have no idea what the impact of this on a high performance app is.

As it seems now, I am suffering from unexplainable idle time. I DONT know if this is because wxCriticalSection is inefficient in wxMAC or I simply don't do things right.
Is wxCriticalSection / wxMutex implemented optimally for OSX?
Thanks!
/Michael