Re: Trylocks in the kernel
Re: Trylocks in the kernel
- Subject: Re: Trylocks in the kernel
- From: Ryan McGann <email@hidden>
- Date: Tue, 13 Dec 2005 22:01:15 -0800
On Dec 13, 2005, at 9:21 AM, Brian Bergstrand wrote:
On Dec 13, 2005, at 12:23 AM, Ryan McGann wrote:
The new Tiger locking KPIs seem to lack a trylock variant for any
of the lock types (mutex, spinlock, read/write).
A mutex try variant is available in the Unsupported KPI. It's
probably safe to use this for 8.0, but may break in the next major
release.
All of the try variants are in the kernel proper, so one has to
wonder why they are not exported in the KPI.
Well they also have a way to promote read-write locks to exclusive
from shared exported in the kernel, but not in the KPIs
(lck_rw_exclusive_to_shared and lck_rw_shared_to_exclusive). That bug
was closed :-( It would be really nice to have those KPIs back in the
supported list, if anybody is listening...
Ryan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden