feat/support_fiber #2
@ -78,6 +78,7 @@ set(gflags_DIR "${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags")
|
||||
add_subdirectory("third_party/glog")
|
||||
|
||||
set(CURL_DISABLE_TESTS ON)
|
||||
set(CURL_CA_PATH "none" CACHE STRING "" FORCE)
|
||||
set(CURL_ENABLE_SSL
|
||||
OFF
|
||||
CACHE BOOL "" FORCE)
|
||||
|
@ -10,7 +10,8 @@
|
||||
#include <memory>
|
||||
|
||||
struct tile_ucontext_t;
|
||||
struct fcontext_transfer;
|
||||
// struct fcontext_transfer;
|
||||
typedef struct fcontext_transfer fcontext_transfer_t;
|
||||
|
||||
namespace tile {
|
||||
namespace fiber {
|
||||
@ -48,8 +49,8 @@ private:
|
||||
struct FiberContext;
|
||||
friend class ::tile::PoolTraits<FiberContext>;
|
||||
|
||||
friend void FiberEntry(struct fcontext_transfer);
|
||||
friend struct fcontext_transfer FiberOnTop(struct fcontext_transfer);
|
||||
friend void FiberEntry(fcontext_transfer_t);
|
||||
friend fcontext_transfer_t FiberOnTop(fcontext_transfer_t);
|
||||
|
||||
Fiber(std::function<void()> proc = nullptr);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user