How to use opSafeWait ? [Archive] - Quintessential Forum

PDA

View Full Version : How to use opSafeWait ?


Tokelil
11-03-2003, 01:29 AM
How do I use opSafeWait ?

Another thing.
Is WM_PN_PLAYLISTCHANGED send before the changes has been made or after ? (I guess after and my experiments tells me this is true but I get some weird half random behaviour... )

Paul
11-07-2003, 11:42 PM
Use opSafeWait if you need to block on a semaphore/mutex on a call from the player. That would be on any entry point to your plugin that the player calls (such as 'Play' for Input plugins). opSafeWait allows the player to continue handling messages while waiting for the passed handle. This can prevent deadlocks. If you don't think you need this, you probably don't.

WM_PN_PLAYLISTCHANGED is always sent after a change to the playlist.

Tokelil
11-08-2003, 05:45 PM
Okay thx for the info.