SObjectizer-5 Extra
Loading...
Searching...
No Matches
so_5::extra::async_op::time_unlimited Namespace Reference

Namespaces

namespace  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 class  status_t {
  unknown_moved_away , not_activated , activated , completed ,
  cancelled
}
 Enumeration for status of operation. More...
 

Functions

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

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 31 of file time_unlimited.hpp.

Function Documentation

◆ make()

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

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...
asyncop::make(*this)
// ...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 973 of file time_unlimited.hpp.