Re: pthread_mutex_lock returns errorcode 22
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert