Re: glthread_cond_timedwait errors on C99 code

2017-09-30 Thread Tim Rühsen
On Samstag, 30. September 2017 16:31:22 CEST Bruno Haible wrote: > Tim Rühsen wrote: > > The line > > > > return glthread_cond_timedwait(&cond->cond, &mutex->mutex, &(struct > > > > timespec){ .tv_sec = ms / 1000, .tv_nsec = (ms % 1000) * 100 }); > > > > errors with > > > > thread.c:155

Re: glthread_cond_timedwait errors on C99 code

2017-09-30 Thread Bruno Haible
Tim Rühsen wrote: > The line > > return glthread_cond_timedwait(&cond->cond, &mutex->mutex, &(struct > timespec){ .tv_sec = ms / 1000, .tv_nsec = (ms % 1000) * 100 }); > > errors with > > thread.c:155:136: error: macro "glthread_cond_timedwait" passed 4 arguments, > but takes just 3

glthread_cond_timedwait errors on C99 code

2017-09-30 Thread Tim Rühsen
Hi, just seeking for clarification... The line return glthread_cond_timedwait(&cond->cond, &mutex->mutex, &(struct timespec){ .tv_sec = ms / 1000, .tv_nsec = (ms % 1000) * 100 }); errors with thread.c:155:136: error: macro "glthread_cond_timedwait" passed 4 arguments, but takes j