summaryrefslogtreecommitdiff
path: root/m4/fp_check_pthreads.m4
Commit message (Collapse)AuthorAgeFilesLines
* Don't let configure perform trivial substitutions (#21846)Sylvain Henry2022-11-231-3/+3
| | | | | | | | | | | | | | Hadrian now performs substitutions, especially to generate .cabal files from .cabal.in files. Two benefits: 1. We won't have to re-configure when we modify thing.cabal.in. Hadrian will take care of this for us. 2. It paves the way to allow the same package to be configured differently by Hadrian in the same session. This will be useful to fix #19174: we want to build a stage2 cross-compiler for the host platform and a stage1 compiler for the cross target platform in the same Hadrian session.
* rts/OSThreads: Fix reference clock of timedWaitConditionBen Gamari2021-08-021-0/+2
| | | | | | | | | | | | | | | Previously `timedWaitCondition` assumed that timeouts were referenced against `CLOCK_MONOTONIC`. This is wrong; by default `pthread_cond_timedwait` references against `CLOCK_REALTIME`, although this can be overridden using `pthread_condattr_setclock`. Fix this and add support for using `CLOCK_MONOTONIC` whenever possible as it is more robust against system time changes and is likely cheaper to query. Unfortunately, this is complicated by the fact that older versions of Darwin did not provide `clock_gettime`, which means we also need to introduce a fallback path using `gettimeofday`. Fixes #20144.
* rts: Correctly call pthread_setname_np() on NetBSDPHO2021-05-071-0/+17
| | | | | | NetBSD supports pthread_setname_np() but it expects a printf-style format string and a string argument. Also use pthread for itimer on this platform.
* configure: Move pthreads checks to macroBen Gamari2021-05-051-0/+101