Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 4 years ago

Language

C++

Compiler

gcc 12.1.0

Options
Warnings
Boost 1.79.0
C++2b(GNU)
no pedantic

Author

anonymous

about 4 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.79.0-gcc-12.1.0/include -std=gnu++2b
    0ms Enter int main()
    0ms Construct Consumer
    0ms Construct Producer
    0ms Enter void Producer::start()
    0ms Enter void Producer::fiber_run()
    0ms Enter bool Consumer::operator()(int)
    0ms Channel operation: _chan.push(i)
    0ms Leave void Producer::start()
    0ms Enter void Consumer::start()
    0ms Enter void Consumer::fiber_run()
    0ms Channel operation: _chan.pop(i)
    0ms  -> channel_op_status: Success
    0ms  -> popped: 0
    0ms Channel operation: _chan.pop(i)
    0ms Leave void Consumer::start()
    0ms done.
    0ms Enter Producer::~Producer()
    0ms  -> channel_op_status: Success
    0ms Leave bool Consumer::operator()(int)
 1000ms Enter bool Consumer::operator()(int)
 1000ms Channel operation: _chan.push(i)
 1000ms  -> channel_op_status: Success
 1000ms  -> popped: 1
 1000ms Channel operation: _chan.pop(i)
 1000ms  -> channel_op_status: Success
 1000ms Leave bool Consumer::operator()(int)
 2000ms Enter bool Consumer::operator()(int)
 2000ms Channel operation: _chan.push(i)
 2000ms  -> channel_op_status: Success
 2000ms  -> popped: 2
 2000ms Channel operation: _chan.pop(i)
 2000ms  -> channel_op_status: Success
 2000ms Leave bool Consumer::operator()(int)
 3000ms Enter bool Consumer::operator()(int)
 3000ms Channel operation: _chan.push(i)
 3000ms  -> channel_op_status: Success
 3000ms  -> popped: 3
 3000ms Channel operation: _chan.pop(i)
 3000ms  -> channel_op_status: Success
 3000ms Leave bool Consumer::operator()(int)
 4000ms Enter bool Consumer::operator()(int)
 4000ms Channel operation: _chan.push(i)
 4000ms  -> channel_op_status: Success
 4000ms  -> popped: 4
 4000ms Channel operation: _chan.pop(i)
 4000ms  -> channel_op_status: Success
 4000ms Leave bool Consumer::operator()(int)
 5001ms Enter bool Consumer::operator()(int)
 5001ms Channel operation: _chan.push(i)
 5001ms  -> channel_op_status: Success
 5001ms  -> popped: 5
 5001ms Channel operation: _chan.pop(i)
 5001ms  -> channel_op_status: Success
 5001ms Leave bool Consumer::operator()(int)
 6001ms Enter bool Consumer::operator()(int)
 6001ms Channel operation: _chan.push(i)
 6001ms  -> channel_op_status: Success
 6001ms  -> popped: 6
 6001ms Channel operation: _chan.pop(i)
 6001ms  -> channel_op_status: Success
 6001ms Leave bool Consumer::operator()(int)
 7001ms Enter bool Consumer::operator()(int)
 7001ms Channel operation: _chan.push(i)
 7001ms  -> channel_op_status: Success
 7001ms  -> popped: 7
 7001ms Channel operation: _chan.pop(i)
 7001ms  -> channel_op_status: Success
 7001ms Leave bool Consumer::operator()(int)
 8001ms Enter bool Consumer::operator()(int)
 8001ms Channel operation: _chan.push(i)
 8001ms  -> channel_op_status: Success
 8001ms  -> popped: 8
 8001ms Channel operation: _chan.pop(i)
 8001ms  -> channel_op_status: Success
 8001ms Leave bool Consumer::operator()(int)
 9001ms Enter bool Consumer::operator()(int)
 9001ms Channel operation: _chan.push(i)
 9001ms  -> channel_op_status: Success
 9001ms  -> popped: 9
 9001ms Channel operation: _chan.pop(i)
 9001ms  -> channel_op_status: Success
 9001ms Leave bool Consumer::operator()(int)
10002ms Closing producer
10002ms Enter bool Consumer::operator()(int)
10002ms Channel operation: _chan.push(i)
10002ms  -> channel_op_status: Success
10002ms  -> popped: -99
10002ms Leave void Consumer::fiber_run()
10002ms  -> channel_op_status: Closed
10002ms Leave bool Consumer::operator()(int)
10002ms Leave void Producer::fiber_run()
10002ms Leave Producer::~Producer()
10002ms Destruct Producer
10002ms Enter Consumer::~Consumer()
10002ms Leave Consumer::~Consumer()
10002ms Destruct Consumer
10002ms Leave int main()
Exit Code:
0