Re: pthread_mutex_lock returns errorcode 22
Re: pthread_mutex_lock returns errorcode 22
- Subject: Re: pthread_mutex_lock returns errorcode 22
- From: Terry Lambert <email@hidden>
- Date: Fri, 16 Dec 2005 11:55:49 -0800
On Dec 16, 2005, at 6:24 AM, Amol Gajewar wrote:
I am Sorry for email sent earlier pthread_mutex_lock returns error
code 2.
The above mentioned function pthread_mutex_lock returns error code
as 22.
Due to this an exception is thrown as Abort Trap .
If possible give suggestion or comments above function should work
properly.
You should ask questions like this on the appropriate list; this is
not a kernel related question, it is a pthreads programming issue; you
are using the API incorrectly.
Specifically, you aren't calling pthread_mutex_init() before trying to
use the mutex.
May I suggest this book?
PThreads Programming
A POSIX Standard for Better Multiprocessing
Bradford Nichols, Dick Buttlar, Jacqueline Proulx Farrell
ISBN: 1-56592-115-1
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden