Open jeanga opened 3 years ago
Hi,
I've been trying to implement the single_producer_sequencer pattern in my code and based my attempt on the sample code here: https://github.com/lewissbaker/cppcoro#single_producer_sequencer
Unfortunately, apart from small errors in the code (producer() does not take a thread_pool but an io_service), and missing main() and processMessage(), when I get to some compilable code, it hangs and never exits...
Here is the main() I used:
int main() { cppcoro::static_thread_pool tp{8}; cppcoro::io_service ioService; cppcoro::sync_wait(example(ioService, tp)); return 0; }
My environment is Win10, VSVC 16.10.
Anyways, thank you for the great library! (used generator<> and recursive_generator<> with great ease and hapiness :-) )
Hi,
I've been trying to implement the single_producer_sequencer pattern in my code and based my attempt on the sample code here: https://github.com/lewissbaker/cppcoro#single_producer_sequencer
Unfortunately, apart from small errors in the code (producer() does not take a thread_pool but an io_service), and missing main() and processMessage(), when I get to some compilable code, it hangs and never exits...
Here is the main() I used:
My environment is Win10, VSVC 16.10.
Anyways, thank you for the great library! (used generator<> and recursive_generator<> with great ease and hapiness :-) )