Article View: comp.sys.mac.programmer.codewarrior
Article #970Re: Mutex
From: Ray Fischer
Date: Mon, 24 Jun 2002 21:12
Date: Mon, 24 Jun 2002 21:12
32 lines
2393 bytes
2393 bytes
William A. McKee <wamckee@msn.com> wrote: >What about OS 9 ? Multiprocesser Services. >"David M. Palmer" <dmpalmer@email.com> wrote in message >> In article <3d15d1c0$1_2@aeinews.>, William A. McKee <wamckee@msn.com> >> wrote: >> >> > How do you guarantee mutual exclusion with an Apple API or PowerPlant. >I >> > have an ISR that gets called by Open Transport and I don't want >collisions >> > when accessing the same data when handling the ISR routine. >> >> Under OS X, you can use the POSIX mutex libraries: >> >> % man -k mutex >> pthread_mutex_destroy(3) - free resources allocated for a mutex >> pthread_mutex_init(3) - create a mutex >> pthread_mutex_lock(3) - lock a mutex >> pthread_mutex_trylock(3) - attempt to lock a mutex without blocking >> pthread_mutex_unlock(3) - unlock a mutex >> pthread_mutexattr_init(3), pthread_mutexattr_destroy(3), >> pthread_mutexattr_setprioceiling(3), >> pthread_mutexattr_getprioceiling(3), pthread_mutexattr_setprotocol(3), >> pthread_mutexattr_getprotocol(3), pthread_mutexattr_settype(3), >> pthread_mutexattr_gettype(3) - mutex attribute operations -- Ray Fischer Most people, sometime in their lives, stumble across truth. rfischer@sonic.net Most jump up, brush themselves off, and hurry on about their business as if nothing had happened. -- Churchill
Technical Details
Message-ID:
<af81vi$e1u$1@newbolt.sonic.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!feed.news.sonic.net!typhoon.sonic.net!not-for-mailReferences:
<230620021529203183%dmpalmer@email.com> <3d173658$1_3@aeinews.>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,645725385a3894f7 X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,645725385a3894f7 X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2002-06-24 14:15:10 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!feed.news.sonic.net!typhoon.sonic.net!not-for-mail From: rfischer@newbolt.sonic.net (Ray Fischer) Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac Subject: Re: Mutex Organization: Sonic, San Jose Lines: 33 Message-ID: <af81vi$e1u$1@newbolt.sonic.net> References: <230620021529203183%dmpalmer@email.com> <3d173658$1_3@aeinews.> Date: Mon, 24 Jun 2002 21:12:16 GMT NNTP-Posting-Host: 208.201.242.18 X-Complaints-To: abuse@sonic.net X-Trace: typhoon.sonic.net 1024953136 208.201.242.18 (Mon, 24 Jun 2002 14:12:16 PDT) NNTP-Posting-Date: Mon, 24 Jun 2002 14:12:16 PDT