Skip to content

Conversation

@DeveloperPaul123
Copy link
Owner

@DeveloperPaul123 DeveloperPaul123 commented Sep 12, 2022

Note
This is on hold until I can ensure that the necessary build flags are properly set in the dp::thread-pool for coroutine support. It seems that down-stream projects for coroutines don't set these in the targets properly but I want dp::thread-pool to do this.

Changes

  • Updated CPM.cmake version
  • Added schedule() function to allow for running coroutines on the thread pool
  • Added batch enqueue() function to better compare to coroutine performance

DeveloperPaul123 and others added 30 commits September 12, 2022 12:43
Added a basic awaitable type and function to allow for running coroutines on the thread pool
Add ability to enqueue a range of void() functions
Also changed benchmarks so that only 1 runs in debug mode for the dp::thread_pool
Removed modulus calculation for assigning tasks to thread queues.
Use feature test macro from C++20's `<version>` header to check for `std::move_only_function` support
Added a basic awaitable type and function to allow for running coroutines on the thread pool
Add ability to enqueue a range of void() functions
Also changed benchmarks so that only 1 runs in debug mode for the dp::thread_pool
Removed modulus calculation for assigning tasks to thread queues.
@DeveloperPaul123 DeveloperPaul123 changed the title Adding support for using this thread pool with coroutines Add support for using this thread pool with coroutines May 31, 2023
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
B Maintainability Rating on New Code (required ≥ A)
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

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

Successfully merging this pull request may close these issues.

2 participants