21 lines
302 B
C
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;
|
||
|
};
|