I have many spin locks in my multi-threaded code, and most of the time they wait for other threads to work, and thus chew on CPU usage. On linux, I usually use pthread_cond_wait and pthread_cond_signal to pause a thread and wake up when it is signaled. Is there something similar in acceleration libraries? Having a quick look, I could not find anything.
Visual studio 2005
source
share