mirror of
https://github.com/open-goal/jak-project
synced 2026-08-09 02:49:19 -04:00
[wip] Jak 3 Overlord (#3567)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "iop_thread.h"
|
||||
|
||||
#include "common/global_profiler/GlobalProfiler.h"
|
||||
|
||||
#ifdef __linux__
|
||||
#include <unistd.h>
|
||||
#elif _WIN32
|
||||
@@ -57,6 +59,7 @@ void* IOP::iop_alloc(int size) {
|
||||
|
||||
void IOP::wait_run_iop(
|
||||
std::chrono::time_point<std::chrono::steady_clock, std::chrono::microseconds> wakeup) {
|
||||
auto p = scoped_prof("krnlw");
|
||||
std::unique_lock<std::mutex> lk(run_cv_mutex);
|
||||
iop_run_cv.wait_until(lk, wakeup);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user