aboutsummaryrefslogtreecommitdiff
path: root/core/sys/posix/pthread.odin
Commit message (Collapse)AuthorAgeFilesLines
* fix pthread_attr_t size on arm64Laytan Laats2025-11-081-1/+9
|
* Fix various foreign signaturesHarold Brenes2025-09-291-2/+2
|
* Replace system:System.framework imports with system:SystemHarold Brenes2025-07-131-1/+1
| | | | This makes the linker work for both macOS and iOS targets
* fix haikuavanspector2024-12-201-1/+51
|
* fix thread_unix for Darwin after pthread corrections in posix packageLaytan Laats2024-10-301-2/+12
| | | | | | | | | | | | | | | | | | | | | | | 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.)
* fix testLaytan2024-10-281-3/+3
|
* port pthread_mutex_t and pthread_cond_t from sys/unix cause miniaudio wants itLaytan2024-10-281-4/+44
|
* sys/posix: impl rest of linux, impl some of WindowsLaytan Laats2024-10-281-3/+2
|
* review/correct/cleanup posix linux PRLaytan2024-09-301-2/+7
|
* Implement POSIX pthread, signal, sys/resource, unistd for Linux.Isaac Andrade2024-09-211-0/+39
|
* posix: add packageLaytan Laats2024-08-141-0/+518