50 #include <boost/lexical_cast.hpp> 61 , lock_policy(LOCK_FREE)
74 return *s_default_policy;
83 result.
init = init_connection;
94 result.
init = init_connection;
104 result.
init = init_connection;
138 , lock_policy(lock_policy)
156 default: type =
"(unknown type)";
break;
159 type +=
"[" + boost::lexical_cast<std::string>(cp.
size) +
"]";
167 default: lock_policy =
"(unknown lock policy)";
break;
172 switch(
int(cp.
pull)) {
179 os << lock_policy <<
" ";
static ConnPolicy data(int lock_policy=LOCK_FREE, bool init_connection=true, bool pull=false)
static const int CIRCULAR_BUFFER
static ConnPolicy circularBuffer(int size, int lock_policy=LOCK_FREE, bool init_connection=false, bool pull=false)
static ConnPolicy buffer(int size, int lock_policy=LOCK_FREE, bool init_connection=false, bool pull=false)
static const int LOCK_FREE
std::ostream & operator<<(std::ostream &os, const BufferPolicy &bp)
static ConnPolicy & Default()
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
static const int UNBUFFERED