Commentary for sleep(1) in case of the error condition in the IfaceMgr.
Also fixed one parameter name in the doxygen.
// Signal the error to receive4.
receiver_error_ = strerror(errno);
error_watch_.markReady();
+ // We need to sleep in case of the error condition to
+ // prevent the thread from tight looping when result
+ // gets negative.
sleep(1);
}
continue;
// Signal the error to receive6.
receiver_error_ = strerror(errno);
error_watch_.markReady();
+ // We need to sleep in case of the error condition to
+ // prevent the thread from tight looping when result
+ // gets negative.
sleep(1);
}
continue;
/// @brief Constructor
///
/// @param queue_type logical name of the queue implementation
- /// @param queue_capacity maximum number of packets the queue can hold
+ /// @param capacity maximum number of packets the queue can hold
PacketQueueRing(const std::string& queue_type, size_t capacity)
: PacketQueue<PacketTypePtr>(queue_type) {
queue_.set_capacity(capacity);