>Is there any sample code that show a simple implementation
>of mutex on PalmOS ? mainly to use with callback functions
>and external buffer filler, i'd like to use it with SndStream functions.

You don't need mutual exclusion. Sound callbacks are not called by a
concurrent thread, but by an interrupt handler. This means that your sound
callback cannot wait for another thread to release a mutex, since no other
thread will run until your callback returns.

Palm OS does not provide support for mutex, but if it would and if you'd use
it in a sound callback, you'd simply get a dead lock.

Pascal



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to