User: Password:
|
|
Subscribe / Log in / New account

The obvious name ...

The obvious name ...

Posted Aug 10, 2009 14:44 UTC (Mon) by kjp (subscriber, #39639)
In reply to: The obvious name ... by eliezert
Parent article: The realtime preemption endgame

I thought atomic_spinlock wasn't too bad, but I like busywait_spinlock.

Of course, I do think it would be better to rename the spinlock itself if it no longer does that....

I guess to facilitate the changeover you could have atomic_lock or busywait_lock (spin is a bit redundant) and mutex, and only very old code would need a typdef for the now non existant 'spinlock' type.


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds