lkml.org 
[lkml]   [2007]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: whatever happened to down_timeout()?
Chris Friesen wrote:

> static inline int down_timeout(struct semaphore * sem, unsigned int
> timeout)
> {
> int ret = down_trylock(sem);
> if (!ret)
> ret = __down_timeout(sem, timeout);
> return ret;
> }

Sorry, I think that should be:

static inline int down_timeout(struct semaphore * sem, unsigned int timeout)
{
int ret = down_trylock(sem);
if (ret)
ret = __down_timeout(sem, timeout);
return ret;
}

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

\
 
 \ /
  Last update: 2007-02-14 00:47    [W:0.036 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site