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: see if a mutex lock is taken?



hi Greg, yep these mechanisms exist, this is the first things that you
implement when you write a lock system no matter on what: islockable
and islocked

try to understand, what you do (if you use a lck object (locked))
if your lock object has been created, a lock has been aquired
when you create a lock object,  the lock system test it for you

-mmw

On Feb 11, 2008 12:01 PM, Greg <email@hidden> wrote:
>
> On Feb 11, 2008, at 2:49 PM, mm w wrote:
>
> > hi greg,
> >
> > lock.h
> >
> > extern boolean_t      mutex_try(
> >                                               mutex_t         *mutex);
> >
> > whatever it depends of your xnu version
> >
> > -mmw
>
> Hmm... I've found this in the sources to xnu, but I can't find this in
> the Kernel.framework.  Perhaps I should have mentioned that I'm
> writing a kernel extension.  Does this exist for kernel extensions,
> and if so how do I access it?  Right now I'm just linking against
> Kernel.framework, which doesn't seem to have this header.
>
> Thanks!
>
> - Greg
>



-- 
-mmw
 _______________________________________________
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: 
 >see if a mutex lock is taken? (From: Greg <email@hidden>)
 >Re: see if a mutex lock is taken? (From: Michael Smith <email@hidden>)
 >Re: see if a mutex lock is taken? (From: Greg <email@hidden>)
 >Re: see if a mutex lock is taken? (From: Greg <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.