Apache Mesos
Classes | Namespaces | Functions | Variables
libev.hpp File Reference
#include <ev.h>
#include <mutex>
#include <queue>
#include <process/future.hpp>
#include <process/owned.hpp>
#include <stout/lambda.hpp>
#include <stout/synchronized.hpp>

Go to the source code of this file.

Classes

struct  process::LoopIndex
 

Namespaces

 process
 

Functions

LoopIndex process::get_loop (int_fd fd)
 
template<typename T >
void process::_run_in_event_loop (struct ev_loop *loop, const lambda::function< Future< T >(struct ev_loop *)> &f, const Owned< Promise< T >> &promise)
 
template<typename T >
Future< T > process::run_in_event_loop (const LoopIndex loop_index, const lambda::function< Future< T >(struct ev_loop *)> &f)
 

Variables

struct ev_loop ** process::loops
 
ev_async * process::async_watchers
 
std::mutex * process::functions_mutexes
 
std::queue< lambda::function< void()> > * process::functions
 
thread_local struct ev_loop * process::_in_event_loop_