<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/regress/lib/libpthread/semaphore/sem_timedwait, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/regress/lib/libpthread/semaphore/sem_timedwait?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/regress/lib/libpthread/semaphore/sem_timedwait?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-12-20T23:39:01Z</updated>
<entry>
<title>Fix the sem_timedwait(3) test.</title>
<updated>2019-12-20T23:39:01Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2019-12-20T23:39:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c672e670483e64beb92e18b92467ba4bf2b73852'/>
<id>urn:sha1:c672e670483e64beb92e18b92467ba4bf2b73852</id>
<content type='text'>
The recent clock_getres(2) changes made it so that clock_getres(2) returns
the granularity of the active timecounter.  This is usually much finer
than that of hardclock(9), so we can no longer use clock_getres(2) to
fudge our upper timeout return bound.  The test is failing because it
thinks our sem_timedwait(3) call is returning with too much latency.

We can still get the hardclock(9) granularity via the kern.clockrate
sysctl(2), though, so just use that to fudge the upper bound.

While here, we ought to be checking that we return after the requested
absolute timeout, not that we were asleep for a particular interval.

Breakage reported by mpi@.

ok mpi@
</content>
</entry>
<entry>
<title>Fix sem_timedwait regress test. Needs SA_RESTART to block now.</title>
<updated>2018-04-27T11:31:17Z</updated>
<author>
<name>pirofti</name>
<email>pirofti@openbsd.org</email>
</author>
<published>2018-04-27T11:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=fd181be8702dedce8ecf811742c92216629b6d8e'/>
<id>urn:sha1:fd181be8702dedce8ecf811742c92216629b6d8e</id>
<content type='text'>
Hug and OK guenther@
</content>
</entry>
<entry>
<title>There can be resolution-worth of slop in two places, so accept that</title>
<updated>2014-01-22T04:31:45Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2014-01-22T04:31:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=737af275fbf18dc26e38f3404bf2d0815c9b81c4'/>
<id>urn:sha1:737af275fbf18dc26e38f3404bf2d0815c9b81c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add tests for sem_timedwait()</title>
<updated>2012-03-03T11:08:12Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2012-03-03T11:08:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=db068fc7e7c9bb12c19a6b4bc7a08abae6d6d00c'/>
<id>urn:sha1:db068fc7e7c9bb12c19a6b4bc7a08abae6d6d00c</id>
<content type='text'>
</content>
</entry>
</feed>
