Files
concurrency-in-action/source/listing_c.3.cpp
2018-10-18 00:40:34 -05:00

10 lines
178 B
C++

namespace messaging {
class receiver {
queue q;
public:
operator sender() { return sender(&q); }
dispatcher wait() { return dispatcher(&q); }
};
} // namespace messaging