This is the mail archive of the
pthreads-win32@sourceware.org
mailing list for the pthreas-win32 project.
pthread_mutex_unlock and pthread_mutex_trylock
- From: "Kaya, Sinan" <sinan dot kaya at siemens dot com>
- To: <pthreads-win32 at sourceware dot org>
- Date: Fri, 2 Mar 2007 14:38:50 +0200
- Subject: pthread_mutex_unlock and pthread_mutex_trylock
hello All,
I think it would be wise to put some control in pthread_mutex_unlock and pthread_mutex_trylock functions as in pthread_mutex_lock.
something like this can help it.
if (*mutex == NULL)
{
return EINVAL;
}
ragards,
sinan.
We shall not cease from exploration, and the end of all our exploring will be to arrive where we started and know the place for the first time.
T. S. Eliot
Ömer Sinan KAYA (M.Sc.)
SIEMENS A.S.- PSE AS TR
Embedded Software Technologies
Tel : +90 216 459 37 20
Fax : +90 216 459 20 42
E-mail : sinan.kaya@siemens.com
Address : Yakacik Caddesi No:111 34870 Kartal, Istanbul-TURKEY