3#include <yaclib/config.hpp>
12#include <unordered_map>
29 using Id = std::uint64_t;
67 std::unordered_map<std::uint64_t, void*> _tls;
71 bool _thread_alive =
true;
void SetState(FiberState state) noexcept
FiberState GetState() noexcept
bool IsThreadAlive() const noexcept
void SetThreadDead() noexcept
void SetJoiningFiber(FiberBase *joining_fiber) noexcept
ExecutionContext _context
Id GetId() const noexcept
void SetTLS(std::uint64_t id, void *value)
static IStackAllocator & GetAllocator() noexcept
std::exception_ptr _exception
void * GetTLS(std::uint64_t id, std::unordered_map< std::uint64_t, void * > &defaults)
Passed to coroutine/fiber constructor, specifies the way in which memory for Stack is Allocated and R...
Contract< V, E > MakeContract()
Creates related future and promise.