mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
named_thread: implement "default" event loop
Fixup "sleepy" thread at startup on Windows. Permit threads which lack operator()() overload.
This commit is contained in:
parent
29e7eda887
commit
3aaa0172d5
3 changed files with 22 additions and 8 deletions
|
@ -377,8 +377,11 @@ int main(int argc, char** argv)
|
|||
}
|
||||
#endif
|
||||
|
||||
// Initialize TSC freq (in case it isn't)
|
||||
static_cast<void>(utils::get_tsc_freq());
|
||||
|
||||
// Initialize thread pool finalizer (on first use)
|
||||
named_thread("", []{})();
|
||||
static_cast<void>(named_thread("", [](int) {}));
|
||||
|
||||
static std::unique_ptr<logs::listener> log_file;
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue