mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-17 13:42:21 +00:00
small formating + fixing for channels
This commit is contained in:
@@ -108,7 +108,7 @@ private:
|
||||
}
|
||||
|
||||
channel_op_status push_( typename node::ptr const& new_node,
|
||||
std::unique_lock< boost::fibers::mutex >& lk ) {
|
||||
std::unique_lock< boost::fibers::mutex > & lk ) {
|
||||
if ( is_closed_() ) {
|
||||
return channel_op_status::closed;
|
||||
}
|
||||
@@ -134,8 +134,8 @@ private:
|
||||
|
||||
template< typename Clock, typename Duration >
|
||||
channel_op_status push_wait_until_( typename node::ptr const& new_node,
|
||||
std::chrono::time_point< Clock, Duration > const& timeout_time,
|
||||
std::unique_lock< boost::fibers::mutex >& lk) {
|
||||
std::chrono::time_point< Clock, Duration > const& timeout_time,
|
||||
std::unique_lock< boost::fibers::mutex > & lk) {
|
||||
if ( is_closed_() ) {
|
||||
return channel_op_status::closed;
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ private:
|
||||
}
|
||||
|
||||
channel_op_status push_( typename node::ptr const& new_node,
|
||||
std::unique_lock< boost::fibers::mutex >& lk) {
|
||||
std::unique_lock< boost::fibers::mutex > & lk) {
|
||||
if ( is_closed_() ) {
|
||||
return channel_op_status::closed;
|
||||
}
|
||||
@@ -135,10 +135,10 @@ private:
|
||||
typename node::ptr pop_head_() {
|
||||
typename node::ptr old_head = head_;
|
||||
head_ = old_head->nxt;
|
||||
if ( nullptr == head_) {
|
||||
if ( ! head_) {
|
||||
tail_ = & head_;
|
||||
}
|
||||
old_head->nxt = nullptr;
|
||||
old_head->nxt.reset();
|
||||
return old_head;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user