pthread_mutex_trylock behaviour

Peter Naulls peter at
Sat Jan 22 16:18:30 PST 2005

One for Alex:

Can you confirm that pthread_mutex_trylock should return EBUSY not
EDEADLK when the current thread already contains a lock on the mutex?
If so, I'll submit a patch.

I'm running through a test suite which happens to test a great deal of
low-level UL behaviour - some of this is pthread releated, some other
I/O stuff, and much of it presently fails.

Peter Naulls - peter at        |
Drobe -        | The Premier RISC OS News Site

More information about the gcc mailing list