diff options
Diffstat (limited to 'fastos/src/tests/job.h')
-rw-r--r-- | fastos/src/tests/job.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fastos/src/tests/job.h b/fastos/src/tests/job.h index a5b84fa0f9c..1d35ec95270 100644 --- a/fastos/src/tests/job.h +++ b/fastos/src/tests/job.h @@ -2,6 +2,9 @@ #pragma once +#include <mutex> +#include <condition_variable> + enum JobCode { PRINT_MESSAGE_AND_WAIT3SEC, @@ -28,9 +31,8 @@ private: public: JobCode code; char *message; - FastOS_Mutex *mutex; - FastOS_Cond *condition; - FastOS_BoolCond *boolcondition; + std::mutex *mutex; + std::condition_variable *condition; FastOS_ThreadInterface *otherThread, *ownThread; double *timebuf; double average; @@ -45,7 +47,6 @@ public: message(nullptr), mutex(nullptr), condition(nullptr), - boolcondition(nullptr), otherThread(nullptr), ownThread(nullptr), timebuf(nullptr), |