[Mesa-dev] [PATCH] c11/threads: initialize timeout structure

Matt Turner mattst88 at gmail.com
Tue Oct 6 12:04:30 PDT 2015


On Sat, Oct 3, 2015 at 5:19 PM, Jan Vesely <jano.vesely at gmail.com> wrote:
> Signed-off-by: Jan Vesely <jano.vesely at gmail.com>
> ---
>  include/c11/threads_posix.h | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h
> index 3def6c4..ce9853b 100644
> --- a/include/c11/threads_posix.h
> +++ b/include/c11/threads_posix.h
> @@ -136,8 +136,14 @@ cnd_timedwait(cnd_t *cond, mtx_t *mtx, const xtime *xt)

I'm confused. The docs here [1] give a different prototype for this
function -- one without the xt argument. Is our implementation for
some pre-C11 spec?

[1] http://en.cppreference.com/w/c/thread/cnd_timedwait


More information about the mesa-dev mailing list