Skip to content

Fix two issues on musl - #50

Merged
padenot merged 2 commits into
masterfrom
musl-pthread-t
Sep 17, 2026
Merged

padenot merged 2 commits into
masterfrom
musl-pthread-t

Conversation

@padenot

@padenot padenot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

This fixes #49, and adds CI with some peculiarities.

musl defines pthread_t as *mut c_void instead of an integer, so the
to_ne_bytes/from_ne_bytes serialization didn't compile. Go through usize,
which is as wide as pthread_t on every Linux target, keeping the
serialized layout unchanged.

Also check the musl targets in CI.

Fixes #49
musl's sched_setscheduler always fails with ENOSYS: POSIX specifies it as
process-scoped, which Linux doesn't provide. The syscall is per-thread,
which is what promoting a thread by tid needs.
@padenot
padenot requested a review from kinetiknz September 16, 2026 13:00
@padenot
padenot merged commit afb43b5 into master Sep 17, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audio_thread_priority fails to compile with musl libc

2 participants