TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Friends | List of all members
cpid::distributed::Work Class Reference

#include <distributed.h>

Public Member Functions

 Work (std::function< void()> onFinish)
 
 Work (Work const &)=delete
 
 Work (Work &&)
 
 ~Work () noexcept(false)
 
bool isCompleted ()
 
bool isSuccess ()
 
void synchronize ()
 
void wait ()
 
const std::exception_ptr exception () const
 

Friends

class Context
 

Constructor & Destructor Documentation

cpid::distributed::Work::Work ( std::function< void()>  onFinish)
cpid::distributed::Work::Work ( Work const &  )
delete
cpid::distributed::Work::Work ( Work &&  other)
cpid::distributed::Work::~Work ( )
noexcept

Member Function Documentation

const std::exception_ptr cpid::distributed::Work::exception ( ) const
bool cpid::distributed::Work::isCompleted ( )
bool cpid::distributed::Work::isSuccess ( )
void cpid::distributed::Work::synchronize ( )
void cpid::distributed::Work::wait ( )

Friends And Related Function Documentation

friend class Context
friend

The documentation for this class was generated from the following files: