diff options
Diffstat (limited to 'src/common/fiber.h')
| -rw-r--r-- | src/common/fiber.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/fiber.h b/src/common/fiber.h index 5323e8579..f7f587f8c 100644 --- a/src/common/fiber.h +++ b/src/common/fiber.h | |||
| @@ -7,11 +7,9 @@ | |||
| 7 | #include <functional> | 7 | #include <functional> |
| 8 | #include <memory> | 8 | #include <memory> |
| 9 | 9 | ||
| 10 | #if !defined(_WIN32) && !defined(WIN32) | ||
| 11 | namespace boost::context::detail { | 10 | namespace boost::context::detail { |
| 12 | struct transfer_t; | 11 | struct transfer_t; |
| 13 | } | 12 | } |
| 14 | #endif | ||
| 15 | 13 | ||
| 16 | namespace Common { | 14 | namespace Common { |
| 17 | 15 | ||
| @@ -59,17 +57,10 @@ public: | |||
| 59 | private: | 57 | private: |
| 60 | Fiber(); | 58 | Fiber(); |
| 61 | 59 | ||
| 62 | #if defined(_WIN32) || defined(WIN32) | ||
| 63 | void OnRewind(); | ||
| 64 | void Start(); | ||
| 65 | static void FiberStartFunc(void* fiber_parameter); | ||
| 66 | static void RewindStartFunc(void* fiber_parameter); | ||
| 67 | #else | ||
| 68 | void OnRewind(boost::context::detail::transfer_t& transfer); | 60 | void OnRewind(boost::context::detail::transfer_t& transfer); |
| 69 | void Start(boost::context::detail::transfer_t& transfer); | 61 | void Start(boost::context::detail::transfer_t& transfer); |
| 70 | static void FiberStartFunc(boost::context::detail::transfer_t transfer); | 62 | static void FiberStartFunc(boost::context::detail::transfer_t transfer); |
| 71 | static void RewindStartFunc(boost::context::detail::transfer_t transfer); | 63 | static void RewindStartFunc(boost::context::detail::transfer_t transfer); |
| 72 | #endif | ||
| 73 | 64 | ||
| 74 | struct FiberImpl; | 65 | struct FiberImpl; |
| 75 | std::unique_ptr<FiberImpl> impl; | 66 | std::unique_ptr<FiberImpl> impl; |