feat/support_fiber #2
@ -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)
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user