feat/support_fiber #2

Merged
tqcq merged 57 commits from feat/support_fiber into master 2024-06-21 10:33:52 +08:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 231e74c749 - Show all commits

View File

@ -78,6 +78,7 @@ set(gflags_DIR "${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags")
add_subdirectory("third_party/glog") add_subdirectory("third_party/glog")
set(CURL_DISABLE_TESTS ON) set(CURL_DISABLE_TESTS ON)
set(CURL_CA_PATH "none" CACHE STRING "" FORCE)
set(CURL_ENABLE_SSL set(CURL_ENABLE_SSL
OFF OFF
CACHE BOOL "" FORCE) CACHE BOOL "" FORCE)

View File

@ -10,7 +10,8 @@
#include <memory> #include <memory>
struct tile_ucontext_t; struct tile_ucontext_t;
struct fcontext_transfer; // struct fcontext_transfer;
typedef struct fcontext_transfer fcontext_transfer_t;
namespace tile { namespace tile {
namespace fiber { namespace fiber {
@ -48,8 +49,8 @@ private:
struct FiberContext; struct FiberContext;
friend class ::tile::PoolTraits<FiberContext>; friend class ::tile::PoolTraits<FiberContext>;
friend void FiberEntry(struct fcontext_transfer); friend void FiberEntry(fcontext_transfer_t);
friend struct fcontext_transfer FiberOnTop(struct fcontext_transfer); friend fcontext_transfer_t FiberOnTop(fcontext_transfer_t);
Fiber(std::function<void()> proc = nullptr); Fiber(std::function<void()> proc = nullptr);