Re: [PATCH 3/8] qemu-thread: Avoid futex abstraction for non-Linux

2024-12-28 Thread Phil Dennis-Jordan
This fix makes sense. I've also successfully tested with this new "pure" pthread-based QemuEvent in the apple-gfx code where we initially considered using QemuEvent and ran into the destruction issue on macOS. Tested-by: Phil Dennis-Jordan Reviewed-by: Phil Dennis-Jordan (Unrelated: email to th

[PATCH 3/8] qemu-thread: Avoid futex abstraction for non-Linux

2024-12-24 Thread Akihiko Odaki
qemu-thread used to abstract pthread primitives into futex for the QemuEvent implementation of POSIX systems other than Linux. However, this abstraction has one key difference: unlike futex, pthread primitives require an explicit destruction, and it must be ordered after wait and wake operations.