12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #pragma once
- #include <functional>
- #include "Thread.h"
- namespace Framework
- {
- class AsynchronCall : private Thread
- {
- private:
- std::function<void()> f;
- bool* finished;
- void thread() override;
- void threadEnd() override;
- public:
-
-
-
- DLLEXPORT AsynchronCall(std::function<void()> f);
-
-
-
-
- DLLEXPORT AsynchronCall(const char* name, std::function<void()> f);
-
-
-
-
-
- DLLEXPORT AsynchronCall(std::function<void()> f, bool* finished);
-
-
-
-
-
-
- DLLEXPORT AsynchronCall(
- const char* name, std::function<void()> f, bool* finished);
- };
- }
|