summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Promise.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/OSSupport/Promise.h')
-rw-r--r--src/OSSupport/Promise.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/OSSupport/Promise.h b/src/OSSupport/Promise.h
deleted file mode 100644
index 83d04860b..000000000
--- a/src/OSSupport/Promise.h
+++ /dev/null
@@ -1,38 +0,0 @@
-#pragma once
-
-class cCombinedPromise;
-
-
-class cPromise {
- public:
- cPromise() {}
- virtual ~cPromise () {}
- cPromise * WaitFor(cPromise * a_Promise);
- cPromise * CancelOn(volatile bool& cancelationtoken);
- void Wait();
- virtual bool IsCompleted() = 0;
- //TODO:Expose Events for waiting on
-};
-
-class cCombinedPromise : public cPromise {
-public:
- cCombinedPromise(cPromise*, cPromise*);
- ~cCombinedPromise();
- virtual bool IsCompleted();
-private:
- cPromise* m_left;
- cPromise* m_right;
-};
-
-class cCancelablePromise : public cPromise {
-public:
- cCancelablePromise(cPromise*, volatile bool&);
- ~cCancelablePromise();
- virtual bool IsCompleted();
-private:
- volatile bool& m_cancel;
- cPromise* m_wrapped;
-};
-
-
-