Page MenuHomeFreeBSD

ctfmerge: fix segfault when building on macOS
ClosedPublic

Authored by mp on Mon, Dec 1, 6:46 PM.

Details

Summary

The barrier code was using semaphores which have been deprecated in
macOS and not working at all, causing a race condition. Since macOS
does not have pthread_barrier_*(), this change uses a condition
variable instead.

PR: 290958
Reported by: wosch
MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable