BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Classes | Namespaces | Macros | Functions
thread.hpp File Reference
#include <fc/thread/task.hpp>

Go to the source code of this file.

Classes

class  fc::thread_idle_notifier
 
class  fc::thread
 

Namespaces

 fc
 
 fc::detail
 

Macros

#define FC_CONTEXT_STACK_SIZE   (2048*1024)
 

Functions

void * fc::detail::get_thread_specific_data (unsigned slot)
 
void fc::detail::set_thread_specific_data (unsigned slot, void *new_value, void(*cleanup)(void *))
 
unsigned fc::detail::get_next_unused_task_storage_slot ()
 
void * fc::detail::get_task_specific_data (unsigned slot)
 
void fc::detail::set_task_specific_data (unsigned slot, void *new_value, void(*cleanup)(void *))
 
void fc::yield ()
 
void fc::usleep (const microseconds &u)
 
void fc::sleep_until (const time_point &tp)
 
void fc::exec ()
 
template<typename T1 , typename T2 >
int fc::wait_any (const fc::future< T1 > &f1, const fc::future< T2 > &f2, const microseconds timeout_us=microseconds::maximum())
 
int fc::wait_any (std::vector< promise_base::ptr > &&v, const microseconds &timeout_us=microseconds::maximum())
 
int fc::wait_any_until (std::vector< promise_base::ptr > &&v, const time_point &tp)
 
template<typename Functor >
auto fc::async (Functor &&f, const char *desc FC_TASK_NAME_DEFAULT_ARG, priority prio=priority()) -> fc::future< decltype(f())>
 
template<typename Functor >
auto fc::schedule (Functor &&f, const fc::time_point &t, const char *desc FC_TASK_NAME_DEFAULT_ARG, priority prio=priority()) -> fc::future< decltype(f())>
 
template<typename Functor >
auto fc::sync_call (thread *t, Functor &&f, const char *desc FC_TASK_NAME_DEFAULT_ARG, priority prio=priority()) -> decltype(f())
 

Macro Definition Documentation

#define FC_CONTEXT_STACK_SIZE   (2048*1024)

Definition at line 3 of file thread.hpp.