SObjectizer-5 Extra
Namespaces | Classes | Enumerations | Functions
so_5::extra::async_op::time_unlimited Namespace Reference

Namespaces

 details
 

Classes

class  cancellation_point_t
 An object that allows to cancel async operation. More...
 
class  definition_point_t
 An interface for definition of async operation. More...
 

Enumerations

enum  status_t {
  status_t::unknown_moved_away, status_t::not_activated, status_t::activated, status_t::completed,
  status_t::cancelled
}
 Enumeration for status of operation. More...
 

Functions

SO_5_NODISCARD definition_point_t< details::op_data_tmake (::so_5::agent_t &owner)
 Helper function for creation an instance of async operation. More...
 

Enumeration Type Documentation

◆ status_t

Enumeration for status of operation.

Enumerator
unknown_moved_away 

Status of operation is unknown because the operation data has been moved to another proxy-object.

not_activated 

Operation is not activated yet.

activated 

Operation is activated.

completed 

Operation is completed.

cancelled 

Operation is cancelled.

Definition at line 39 of file time_unlimited.hpp.

Function Documentation

◆ make()

SO_5_NODISCARD definition_point_t<details::op_data_t> so_5::extra::async_op::time_unlimited::make ( ::so_5::agent_t &  owner)
inline

Helper function for creation an instance of async operation.

Instead of creation of op_data_t's instances directly by hand this factory function should be used:

class demo : public so_5::agent_t {
public:
...
virtual void so_evt_start() override {
// Create an async operation...
// ...set up operation completion handlers...
.completed_on(...)
.completed_on(...)
.completed_on(...)
// And now the operation can be activated.
.activate();
...
}
};
Since
v.1.0.4
Parameters
ownerAgent for that this async operation will be created.

Definition at line 981 of file time_unlimited.hpp.