BloombergLP::bdlcc::SingleProducerSingleConsumerBoundedQueue::tryPushBack

Append the specified value to the back of this queue without blocking.

Synopsis

Declared in <bdlcc_singleproducersingleconsumerboundedqueue.h>

int
tryPushBack(TYPE const& value);

Description

Return 0 on success, and a non-zero value otherwise. Specifically, return e_SUCCESS on success, e_DISABLED if isPushBackDisabled(), and e_FULL if !isPushBackDisabled() and the queue was full. The behavior is undefined unless the invoker of this method is the single producer.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
valueelement to append to the queue