MOTION  0.01
Framework for mixed-protocol multi-party computation
Classes | Namespaces | Typedefs | Functions
reusable_future.h File Reference
#include <boost/fiber/future.hpp>
#include <condition_variable>
#include <future>
#include <mutex>
#include <type_traits>
Include dependency graph for reusable_future.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  encrypto::motion::detail::ReusableSharedState< R, MutexType, ConditionVariableType >
 
class  encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >
 
class  encrypto::motion::ReusableFuture< R, MutexType, ConditionVariableType >
 
class  encrypto::motion::ReusablePromise< R, MutexType, ConditionVariableType >
 

Namespaces

 encrypto
 
 encrypto::motion
 
 encrypto::motion::detail
 

Typedefs

template<typename R >
using encrypto::motion::ReusableFiberFuture = ReusableFuture< R, boost::fibers::mutex, boost::fibers::condition_variable >
 
template<typename R >
using encrypto::motion::ReusableFiberPromise = ReusablePromise< R, boost::fibers::mutex, boost::fibers::condition_variable >
 

Functions

template<typename R , typename MutexType , typename ConditionVariableType >
void encrypto::motion::swap (ReusablePromise< R, MutexType, ConditionVariableType > &lhs, ReusablePromise< R, MutexType, ConditionVariableType > &rhs) noexcept