Apache Mesos
Macros | Functions
check.hpp File Reference
#include <string>
#include <stout/check.hpp>
#include <stout/option.hpp>
#include <process/future.hpp>

Go to the source code of this file.

Macros

#define CHECK_PENDING(expression)   CHECK_STATE(CHECK_PENDING, _check_pending, expression)
 
#define CHECK_READY(expression)   CHECK_STATE(CHECK_READY, _check_ready, expression)
 
#define CHECK_DISCARDED(expression)   CHECK_STATE(CHECK_DISCARDED, _check_discarded, expression)
 
#define CHECK_FAILED(expression)   CHECK_STATE(CHECK_FAILED, _check_failed, expression)
 
#define CHECK_ABANDONED(expression)   CHECK_STATE(CHECK_ABANDONED, _check_abandoned, expression)
 

Functions

template<typename T >
Option< Error_check_pending (const process::Future< T > &f)
 
template<typename T >
Option< Error_check_ready (const process::Future< T > &f)
 
template<typename T >
Option< Error_check_discarded (const process::Future< T > &f)
 
template<typename T >
Option< Error_check_failed (const process::Future< T > &f)
 
template<typename T >
Option< Error_check_abandoned (const process::Future< T > &f)
 

Macro Definition Documentation

#define CHECK_ABANDONED (   expression)    CHECK_STATE(CHECK_ABANDONED, _check_abandoned, expression)
#define CHECK_DISCARDED (   expression)    CHECK_STATE(CHECK_DISCARDED, _check_discarded, expression)
#define CHECK_FAILED (   expression)    CHECK_STATE(CHECK_FAILED, _check_failed, expression)
#define CHECK_PENDING (   expression)    CHECK_STATE(CHECK_PENDING, _check_pending, expression)
#define CHECK_READY (   expression)    CHECK_STATE(CHECK_READY, _check_ready, expression)

Function Documentation

template<typename T >
Option<Error> _check_abandoned ( const process::Future< T > &  f)
template<typename T >
Option<Error> _check_discarded ( const process::Future< T > &  f)
template<typename T >
Option<Error> _check_failed ( const process::Future< T > &  f)
template<typename T >
Option<Error> _check_pending ( const process::Future< T > &  f)
template<typename T >
Option<Error> _check_ready ( const process::Future< T > &  f)