pthread has mutex_trylock() for this case. Maybe worth having it too?

Best regards.

I could get the same functionality out of mutex_lock_w_tmo(&mutex, 0) without much more to it than implementing a simple try and without any restrictions.

Mike

Reply via email to