lkml.org 
[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
    From
    Date
    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.


    \
     
     \ /
      Last update: 2009-12-18 16:29    [W:0.020 / U:122.560 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site