mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Rewrite cond_variable
to use waitable atomics
Increase max_timeout and fix max_timeout usage
This commit is contained in:
parent
67f31c17d1
commit
d13ff285d1
5 changed files with 105 additions and 58 deletions
|
@ -185,7 +185,7 @@ class thread_ctrl final
|
|||
static atomic_t<native_core_arrangement> g_native_core_layout;
|
||||
|
||||
// Internal waiting function, may throw. Infinite value is -1.
|
||||
static bool _wait_for(u64 usec);
|
||||
static void _wait_for(u64 usec);
|
||||
|
||||
friend class thread_base;
|
||||
|
||||
|
@ -235,9 +235,9 @@ public:
|
|||
}
|
||||
|
||||
// Wait once with timeout. May spuriously return false.
|
||||
static inline bool wait_for(u64 usec)
|
||||
static inline void wait_for(u64 usec)
|
||||
{
|
||||
return _wait_for(usec);
|
||||
_wait_for(usec);
|
||||
}
|
||||
|
||||
// Wait.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue