Messages in this thread | | | Subject | Re: spinlock which can morph into a mutex | From | Andi Kleen <> | Date | Fri, 18 Dec 2009 16:26:05 +0100 |
| |
Miquel van Smoorenburg <miquels@cistron.nl> writes: > > So I probably need a mutex instead of a spinlock, but I want to > keep minimal overhead for the common case (when no resizing is in > progress). I think I need a spinlock that can morph into a mutex ..
The standed mutexes already do that by themselves.
-Andi
-- ak@linux.intel.com -- Speaking for myself only.
| |