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

[BUG] Multiple Thread Pools #37

Closed
J-B-Blankenship opened this issue Mar 24, 2022 · 1 comment
Closed

[BUG] Multiple Thread Pools #37

J-B-Blankenship opened this issue Mar 24, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@J-B-Blankenship
Copy link

Describe the bug

Instantiating multiple thread pools throughout a code base causes issues when attempting to perform operations on said thread pools.

Minimal working example

Just allocate two thread_pool objects on the stack in different objects (also on the stack) and try to use them.

Behavior

No crashes.

System information

  • CPU model, architecture, # of cores and threads: i7-10875H x 16
  • Operating system: Ubuntu 21.10
  • Name and version of C++ compiler: gcc 11.2
  • Full command used for compiling, including all compiler flags: Bazel's -c opt for C++20
  • Thread pool library version: Latest

(Please note that only the latest version of the thread pool library is supported.)

Additional information

Include any additional information here.

@J-B-Blankenship J-B-Blankenship added the bug Something isn't working label Mar 24, 2022
@bshoshany
Copy link
Owner

Thanks for the bug report! I wrote a short test program that allocates two thread pools and pushes different tasks to each pool, and did not encounter any issues. Please provide a minimal working example that reproduces the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants