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: POSIX Semaphores support.



Hi,

On 12/6/05, Eric Welch <email@hidden> wrote:
Miguel,

For some time OSX has had Posix thread support including semaphores.


In that case, my app has a very strange behaviour on OSX, I make use of sem_init(), sem_wait() & sem_post(), and in OSX my threads never wait on sem_wait().

I googled after that problem and saw a lot of "OSX doesn't support POSIX Semaphores", after which I irresponsibly stopped looking for the cause of the problem. Apparently that could be the case in OSX 10.3, but I'm using 10.4.

Is there any kind of peculiarity in how I should use posix semaphores? (header files, semaphore inicialization or linker flags...)

In linux/ppc, I do not have this isssue..

ps.: if I'm in the wrong list (probably I am, where should I look for information/help?)
 

eric

On Dec 6, 2005, at 11:54 AM, Miguel Filipe wrote:






--
Miguel Sousa Filipe
 _______________________________________________
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: 
 >POSIX Semaphores support. (From: Miguel Filipe <email@hidden>)
 >Re: POSIX Semaphores support. (From: Eric Welch <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.