joyent/libuv — pull request #500 by chobie (2012-07-21 14:51:42+00:00)
Title: unix: don't abort uv_mutex_trylock when it returns EDEADLK or EBUSY.

`uv_mutex_trylock` only checks `EAGAIN`. this changes accepts `EDEADLK` and `EBUSY` errors.

Basically, `EDEADLK` only cause on same thread. I'm not sure I should add this error check here.
But this changes would be helpful in some cases (i. e single thread application). I would be glad if this is accepted.

Thanks,