Skip to content

Commit

Permalink
Use thread pool singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacquwes committed Aug 19, 2024
1 parent abb36e8 commit e627718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/include/coroutine.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct async_operation
: _coroutine(coroutine)
, cancelled(cancelled)
{
static pine::thread_pool pool{};
static pine::thread_pool& pool = pine::thread_pool::get_instance();
pool.enqueue([this]
{
if (!*cancelled)
Expand Down

0 comments on commit e627718

Please sign in to comment.