lkml.org 
[lkml]   [2008]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] add time_now_after and other macros which compare with jiffies
On Sun, Mar 9, 2008 at 12:12 AM, Johannes Weiner <hannes@saeurebad.de> wrote:
> Hi Dave, Andrew and all
>
>
> Dave Young <hidave.darkstar@gmail.com> writes:
>
> > +/* time_now_after(a) return true if now (jiffies) is after a */
> > +#define time_now_after(a) time_after(jiffies, a)
> > +
> > +/* time_now_before(a) return true if now (jiffies) is before a */
> > +#define time_now_before(a) time_before(jiffies, a)
> > +
> > +/* time_now_after_eq(a) return true if now (jiffies) is after or equal to a */
> > +#define time_now_after_eq(a) time_after_eq(jiffies, a)
> > +
> > +/* time_now_before_eq(a) return true if now (jiffies) is before or equal to a */
> > +#define time_now_before_eq(a) time_before_eq(jiffies, a)
>
> How about even more obvious names like time_is_past(), time_is_future(),
> ...?

Thanks for comment.

Then how do we name the _eq version? IMHO, the time_now_* is enough.

>
> Sorry, I missed v1. Should have proposed that earlier.
>
> Hannes
>

Regards
dave


\
 
 \ /
  Last update: 2008-03-09 01:57    [W:0.058 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site