• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: pthread_mutex_lock returns errorcode 22
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: pthread_mutex_lock returns errorcode 22
  • Next by Date: Ejecting removable disks and icons
  • Previous by thread: Re: pthread_mutex_lock returns errorcode 22
  • Next by thread: Ejecting removable disks and icons
  • Index(es):
    • Date
    • Thread