summaryrefslogtreecommitdiffstats
path: root/fastos/src/tests/job.h
diff options
context:
space:
mode:
Diffstat (limited to 'fastos/src/tests/job.h')
-rw-r--r--fastos/src/tests/job.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/fastos/src/tests/job.h b/fastos/src/tests/job.h
deleted file mode 100644
index 4546cfe1daa..00000000000
--- a/fastos/src/tests/job.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-
-#pragma once
-
-#include <mutex>
-#include <condition_variable>
-
-enum JobCode
-{
- PRINT_MESSAGE_AND_WAIT3MSEC,
- INCREASE_NUMBER,
- WAIT_FOR_BREAK_FLAG,
- WAIT_FOR_THREAD_TO_FINISH,
- TEST_ID,
- SILENTNOP,
- NOP
-};
-
-class Job
-{
-private:
- Job(const Job &);
- Job &operator=(const Job&);
-
-public:
- JobCode code;
- char *message;
- std::mutex *mutex;
- std::condition_variable *condition;
- FastOS_ThreadInterface *otherThread, *ownThread;
- std::atomic<int> result;
- FastOS_ThreadId _threadId;
-
- Job()
- : code(NOP),
- message(nullptr),
- mutex(nullptr),
- condition(nullptr),
- otherThread(nullptr),
- ownThread(nullptr),
- result(-1),
- _threadId()
- {
- }
-
- ~Job()
- {
- if(message != nullptr)
- free(message);
- }
-};