Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pthread_mutex_lock returns errorcode 22



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:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden
References: 
 >pthread_mutex_lock returns errorcode 22 (From: "Amol Gajewar" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.