Files
Odin/tests/core
Laytan Laats cc3c9bd871 fix thread_unix for Darwin after pthread corrections in posix package
afed3ce removed the sys/unix package and moved over to sys/posix, it has
new bindings for the pthread APIs but should have been equivalent (not).

8fb7182 used `CANCEL_ENABLE :: 0`, `CANCEL_DISABLE :: 1`, `CANCEL_DEFERRED :: 0`, `CANCEL_ASYNCHRONOUS :: 1` for Darwin, while the
correct values are `1`, `0`, `2` and `0` respectively (same mistake was made for
FreeBSD in that commit).

What this meant is that the
`pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS)` was not actually
successful, but because the error wasn't checked it was assumed it was.
It also meant `pthread_setcancelstate(PTHREAD_CANCEL_ENABLE)` would
actually be setting `PTHREAD_CANCEL_DISABLE`.

The code in this PR restores the behaviour by now actually deliberately
setting `PTHREAD_CANCEL_DISABLE` and not setting
`PTHREAD_CANCEL_ASYNCHRONOUS` which was the previous behaviour that does
actually seem to work for some reason.

(I also fixed an issue in fmt where `x` would use uppercase if it was a
pointer.)
2024-10-30 15:51:56 +01:00
..
2024-06-12 13:30:00 +02:00
2024-08-08 21:15:59 +02:00
2024-09-03 17:23:42 -04:00
2024-09-10 14:52:20 -04:00
2024-06-15 15:49:05 -04:00
2024-06-09 17:59:59 +02:00
2024-08-28 19:53:20 +02:00
2024-08-18 20:14:14 -04:00
2024-10-05 11:26:23 +02:00
2024-06-29 18:51:28 +01:00
2024-06-02 14:47:09 -04:00
2024-08-21 14:06:04 +01:00
2024-06-02 14:47:09 -04:00
2024-10-10 09:14:29 -07:00
2024-06-08 16:43:45 -04:00