summaryrefslogtreecommitdiff
path: root/src/common/fiber.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/fiber.h')
-rw-r--r--src/common/fiber.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/common/fiber.h b/src/common/fiber.h
index 699286ee2..5323e8579 100644
--- a/src/common/fiber.h
+++ b/src/common/fiber.h
@@ -7,9 +7,6 @@
7#include <functional> 7#include <functional>
8#include <memory> 8#include <memory>
9 9
10#include "common/common_types.h"
11#include "common/spin_lock.h"
12
13#if !defined(_WIN32) && !defined(WIN32) 10#if !defined(_WIN32) && !defined(WIN32)
14namespace boost::context::detail { 11namespace boost::context::detail {
15struct transfer_t; 12struct transfer_t;
@@ -57,9 +54,7 @@ public:
57 void Exit(); 54 void Exit();
58 55
59 /// Changes the start parameter of the fiber. Has no effect if the fiber already started 56 /// Changes the start parameter of the fiber. Has no effect if the fiber already started
60 void SetStartParameter(void* new_parameter) { 57 void SetStartParameter(void* new_parameter);
61 start_parameter = new_parameter;
62 }
63 58
64private: 59private:
65 Fiber(); 60 Fiber();
@@ -77,16 +72,7 @@ private:
77#endif 72#endif
78 73
79 struct FiberImpl; 74 struct FiberImpl;
80
81 SpinLock guard{};
82 std::function<void(void*)> entry_point;
83 std::function<void(void*)> rewind_point;
84 void* rewind_parameter{};
85 void* start_parameter{};
86 std::shared_ptr<Fiber> previous_fiber;
87 std::unique_ptr<FiberImpl> impl; 75 std::unique_ptr<FiberImpl> impl;
88 bool is_thread_fiber{};
89 bool released{};
90}; 76};
91 77
92} // namespace Common 78} // namespace Common