NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/56275: pthread_cond_timedwait broken
The following reply was made to PR lib/56275; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: lib/56275: pthread_cond_timedwait broken
Date: Fri, 25 Jun 2021 06:21:38 +0000
On Fri, Jun 25, 2021 at 01:30:01AM +0000, dholland%NetBSD.org@localhost wrote:
> then.tv_sec += ((unsigned long long)usecs * 1000 + start.tv_nsec) / 1000000000;
> then.tv_nsec = ((unsigned long long)usecs * 1000 + start.tv_nsec) % 1000000000;
mlelstv points out: that += should be +
That makes it finish for me, instead of hanging. But it still reports
lots of wrong wait results, like "sleep 100000, slept 1: timeout". So
there's still something wrong going on.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index