| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On May 15, 2007, at 5:48 PM, Jim Wintermyre wrote:
So my question is, is this safe? Is there a better way to do this? I have control over all the clients that will ever call this function, so I can guarantee that any necessary cleanup will happen (i.e. if the process crashes in Init while holding the lock that it will release it etc.).
It's really bogus. Better to keep a state variable in the userclient instance and enforce per-client serialisation that way.
Thanks, Jim _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-drivers mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-drivers/email@hidden
| References: | |
| >Locking in kernel across user space calls (From: Jim Wintermyre <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.