[ECOS] pthread_mutex_unlock when mutex is not locked

Sergei Organov osv@topconrd.ru
Wed Apr 27 09:00:00 GMT 2005

Rubц╘n Pц╘rez de Aranda Alonso <rperez@sidsa.es> writes:
> Hi all,
> I have found a problem when I want to unlock a mutex that is not locked
> by any thread.

Then the problem is in your code. The mutex is not appropriate for what
you are doing, -- only the thread that locked the mutex is allowed to
unlock it. Use something else, e.g., semaphore or condition variable to
achieve your goal.


Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list