lkml.org 
[lkml]   [2012]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] hrtimers: Special-case zero length sleeps
On Wed, Feb 15, 2012 at 09:40:28PM +0100, Peter Zijlstra wrote:
> On Wed, 2012-02-15 at 20:38 +0000, Matthew Garrett wrote:
> > Application authors do seem to have ended up under the belief
> > that sleep(0) is a meaningful thing to do, and the internet seems to be
> > full of suggestions to use it rather than sched_yield().
>
> http://xkcd.com/386/

I'm not even going to pretend to disagree. The question is whether we
want to support their breakage anyway.
--
Matthew Garrett | mjg59@srcf.ucam.org


\
 
 \ /
  Last update: 2012-02-15 21:45    [W:0.059 / U:0.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site