[lkml]   [2009]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: spinlock which can morph into a mutex
Miquel van Smoorenburg <> 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.


-- -- Speaking for myself only.

 \ /
  Last update: 2009-12-18 16:29    [W:0.029 / U:7.104 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site