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: Process Shared Mutex



Il giorno 27/feb/04, alle 19:18, Matt Watson ha scritto:

the errno = 2 brings another question, it's description is "No such file or directory".. what does it means with mutexattr ?..
In the posix specification this value should'nt be set for any possible error in this function

but, if mutexattr has been initialized without error, why this error ???
it's really a needed feature for my current development

pthreads does not use errno to return status. It uses the value directly returned from the routine. Check that value instead of errno. Darwin's pthreads implementation does not support the optional "Thread Process-Shared Synchronization" functionality, so calling pthread_mutexattr_setpshared() with the PTHREAD_PROCESS_SHARED attribute will return EINVAL.

matt.


so waht should I use to get the same results ? semaphores ?
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Process Shared Mutex (From: Justin Walker <email@hidden>)
 >Re: Process Shared Mutex (From: Dario <email@hidden>)
 >Re: Process Shared Mutex (From: Matt Watson <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.