libqi-api  release-2.5.3-2016-11-18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Functions
eventloop.hpp File Reference
#include <boost/shared_ptr.hpp>
#include <boost/function.hpp>
#include <qi/types.hpp>
#include <qi/api.hpp>
#include <qi/clock.hpp>
#include <qi/detail/executioncontext.hpp>
#include <qi/detail/eventloop.hxx>

Go to the source code of this file.

Classes

class  qi::Future< T >
 
class  qi::EventLoop
 Class to handle eventloop. . More...
 
class  qi::detail::TerminateThread
 

Namespaces

 boost
 
 qi
 Deprecated in 2.5. Use int8_t from <cstdint>.
 
 qi::detail
 

Macros

#define _QI_EVENTLOOP_HPP_
 

Functions

EventLoop * qi::getEventLoop ()
 Return the global eventloop, created on demand on first call. More...
 
template<typename F >
auto qi::detail::asyncMaybeActor (F &&cb, qi::Duration delay) -> typename std::enable_if< detail::IsAsyncBind< F >::value, typename std::decay< decltype(cb())>::type >::type
 
template<typename F >
auto qi::detail::asyncMaybeActor (F &&cb, qi::SteadyClockTimePoint timepoint) -> typename std::enable_if< detail::IsAsyncBind< F >::value, typename std::decay< decltype(cb())>::type >::type
 
template<typename R >
Future< R > qi::async (boost::function< R()> callback, uint64_t usDelay)
 
template<typename R >
Future< R > qi::async (boost::function< R()> callback, qi::Duration delay)
 
template<typename R >
Future< R > qi::async (boost::function< R()> callback, qi::SteadyClockTimePoint timepoint)
 
template<typename R >
Future< R > qi::async (detail::Function< R()> callback)
 
template<typename F >
auto qi::asyncDelay (F &&callback, qi::Duration delay) -> decltype(detail::asyncMaybeActor(std::forward< F >(callback), delay))
 
template<typename F >
auto qi::asyncAt (F &&callback, qi::SteadyClockTimePoint timepoint) -> decltype(qi::getEventLoop() ->asyncAt(std::forward< F >(callback), timepoint))
 
template<typename F >
auto qi::async (F &&callback) -> decltype(asyncDelay(std::forward< F >(callback), qi::Duration(0)))
 
template<typename R , typename Func , typename ArgTrack >
QI_API_DEPRECATED qi::Future< R > qi::async (const Func &f, const ArgTrack &toTrack,...)
 
void qi::startEventLoop (int nthread)
 Start the eventloop with nthread threads. No-op if already started. More...
 
boost::asio::io_service & qi::getIoService ()
 Get the io_service used by the global event loop. More...
 

Macro Definition Documentation

#define _QI_EVENTLOOP_HPP_

Definition at line 8 of file eventloop.hpp.