NeoSmart/PEvents — comment on commit f3e24dd7bb18002af8af5d5a2e7799e2e46d9328
File:  line 0
By mqudsi:

This was a leftover artifact from an earlier version of the code. Using PTHREAD_MUTEX_RECURSIVE is not only of no use (as this mutex is only waited on by the pevents code and never left blocking at any point, nor used recursively), but also generally a bad coding practice when used in combination with conditional variables because pthread conditional waits are not aware of the recursion state of the mutex.

More info about this is available here: http://neosmart.net/blog/2011/waitformultipleobjects-and-win32-events-for-linux-and-read-write-locks-for-windows/#comment-644113