2023-07-15 03:07:19 +08:00

21 lines
302 B
C++

#pragma once
#include "HAL/Event.h"
#include "Misc/ScopeLock.h"
#include <chrono>
class CondWait {
public:
CondWait();
~CondWait();
void signal();
int wait(FCriticalSection& mutex);
int waitTimeout(FCriticalSection& mutex, unsigned int ms);
private:
FEvent* event;
};