mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
winpthreads initializes a PTHREAD_RWLOCK_INITIALIZER lock on its first use and fails a concurrent first lock with EINVAL. std::shared_timed_mutex ignores that result in release builds, so two guest threads could both hold a fresh guest rwlock. Lock and unlock the mutex once when the guest rwlock is created, before another thread can reach it, and record the remaining host exposure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>