39 #ifndef ORO_CONN_POLICY_HPP 40 #define ORO_CONN_POLICY_HPP 95 static const int UNBUFFERED = -1;
96 static const int DATA = 0;
97 static const int BUFFER = 1;
98 static const int CIRCULAR_BUFFER = 2;
100 static const int UNSYNC = 0;
101 static const int LOCKED = 1;
102 static const int LOCK_FREE = 2;
112 static ConnPolicy buffer(
int size,
int lock_policy = LOCK_FREE,
bool init_connection =
false,
bool pull =
false);
122 static ConnPolicy circularBuffer(
int size,
int lock_policy = LOCK_FREE,
bool init_connection =
false,
bool pull =
false);
131 static ConnPolicy data(
int lock_policy = LOCK_FREE,
bool init_connection =
true,
bool pull =
false);
141 explicit ConnPolicy(
int type = DATA,
int lock_policy = LOCK_FREE);
int data_size
Suggest the payload size of the data sent over this channel.
int lock_policy
This is the locking policy on the connection.
int type
DATA, BUFFER or CIRCULAR_BUFFER.
A connection policy object describes how a given connection should behave.
int size
If the connection is a buffered connection, the size of the buffer.
bool pull
If true, then the sink will have to pull data.
bool init
If true, one should initialize the connection's value with the last value written on the writer port...
int transport
The prefered transport used.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
std::string name_id
The name of this connection.