fibers_ext.cc
1 // Copyright 2019, Beeri 15. All rights reserved.
2 // Author: Roman Gershman (romange@gmail.com)
3 //
4 #include "util/fibers/fibers_ext.h"
5 
6 namespace std {
7 
8 ostream& operator<<(ostream& o, const ::boost::fibers::channel_op_status op) {
9  using ::boost::fibers::channel_op_status;
10  if (op == channel_op_status::success) {
11  o << "success";
12  } else if (op == channel_op_status::closed) {
13  o << "closed";
14  } else if (op == channel_op_status::full) {
15  o << "full";
16  } else if (op == channel_op_status::empty) {
17  o << "empty";
18  } else if (op == channel_op_status::timeout) {
19  o << "timeout";
20  }
21  return o;
22 }
23 
24 } // namespace std
25 
26 namespace util {
27 namespace fibers_ext {
28 
29 
30 } // namespace fibers_ext
31 } // namespace util