Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

single_producer_sequencer sample code appears broken #196

Open
jeanga opened this issue Apr 16, 2021 · 0 comments
Open

single_producer_sequencer sample code appears broken #196

jeanga opened this issue Apr 16, 2021 · 0 comments

Comments

@jeanga
Copy link

jeanga commented Apr 16, 2021

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 :-) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant