lkml.org 
[lkml]   [2015]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: futex timeout not working? (bisected)
Heiko,

On Thu, 15 Oct 2015, Heiko Carstens wrote:
> /* We wait for half a second. */
> ts.tv_nsec += 500000000;
> if (ts.tv_nsec >= 1000000000)
> {
> ++ts.tv_sec;
> ts.tv_nsec -= 1000000000;
> }
>
> ret = syscall (__NR_futex, &futex_word, op, expected, ts, NULL, FUTEX_BITSET_MATCH_ANY);

If you actually hand in a pointer to 'ts' then the program works as
expected even with the commit in question applied.

Thanks,

tglx





\
 
 \ /
  Last update: 2015-10-16 12:41    [W:0.054 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site