This is the mail archive of the mailing list for the pthreads-win32 project. See the pthreads-win32 home page for more information.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: CancelableWait in misc.c should check for negative timeout

Tor Lillqvist writes:
 >   if (((int) timeout) < 0)
 >     timeout = 0;

Actually, as INFINITE is 0xFFFFFFFF, i.e. -1, this code snippet
shouldn't be in CancelableWait, but in pthreadCancelableTimedWait.