mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Linux: use futex_waitv syscall for atomic waiting
In order to make this possible, some unnecessary features were removed.
This commit is contained in:
parent
831a9fe012
commit
d34287b2cc
51 changed files with 441 additions and 574 deletions
|
@ -60,7 +60,7 @@ void headless_application::InitializeCallbacks()
|
|||
|
||||
return false;
|
||||
};
|
||||
callbacks.call_from_main_thread = [this](std::function<void()> func, atomic_t<bool>* wake_up)
|
||||
callbacks.call_from_main_thread = [this](std::function<void()> func, atomic_t<u32>* wake_up)
|
||||
{
|
||||
RequestCallFromMainThread(std::move(func), wake_up);
|
||||
};
|
||||
|
@ -166,7 +166,7 @@ void headless_application::InitializeCallbacks()
|
|||
/**
|
||||
* Using connects avoids timers being unable to be used in a non-qt thread. So, even if this looks stupid to just call func, it's succinct.
|
||||
*/
|
||||
void headless_application::CallFromMainThread(const std::function<void()>& func, atomic_t<bool>* wake_up)
|
||||
void headless_application::CallFromMainThread(const std::function<void()>& func, atomic_t<u32>* wake_up)
|
||||
{
|
||||
func();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue