lkml.org 
[lkml]   [2001]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    ** Reply to message from Daniel Phillips <phillips@innominate.de> on Wed, 31
    Jan 2001 01:06:08 +0100


    > > What is wrong with sleep_on()?
    >
    > If you have a task that looks like:
    >
    > loop:
    > <do something important>
    > sleep_on(q)
    >
    > And you do wakeup(q) hoping to get something important done, then if the
    > task isn't sleeping at the time of the wakeup it will ignore the wakeup
    > and go to sleep, which imay not be what you wanted.

    Ok, so how should this code have been written?


    --
    Timur Tabi - ttabi@interactivesi.com
    Interactive Silicon - http://www.interactivesi.com

    When replying to a mailing-list message, please direct the reply to the mailing list only. Don't send another copy to me.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:26    [W:0.021 / U:30.172 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site