Windows NT synchronization primitives for Linux
Windows NT synchronization primitives for Linux
Posted Feb 19, 2024 10:31 UTC (Mon) by tialaramex (subscriber, #21167)In reply to: Windows NT synchronization primitives for Linux by intelfx
Parent article: Windows NT synchronization primitives for Linux
For example when we want to lock the mutex, that can't fail in POSIX, it will just deadlock if we're recursively locking our own mutex, which in Rust's model is fine... too bad Sun didn't agree and so it fails instead.
_ = libc::pthread_mutex_lock(raw(self)); // Should be fine, but instead there's a whole mess
