diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2021-02-15 19:19:19 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2021-03-16 13:21:42 +0300 |
commit | 8be8465fbc3a3f79f813210052501d8837d18d83 (patch) | |
tree | b71477d968d574eaa26a48d72a0b7fe0c68ff21b | |
parent | d00312487dd19c1c5f8967974c12239eebdeb667 (diff) |
Don't leak timer wait objects.
-rw-r--r-- | include/llfio/v2.0/detail/impl/dynamic_thread_pool_group.ipp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/llfio/v2.0/detail/impl/dynamic_thread_pool_group.ipp b/include/llfio/v2.0/detail/impl/dynamic_thread_pool_group.ipp index 571b90cf..3fa590a8 100644 --- a/include/llfio/v2.0/detail/impl/dynamic_thread_pool_group.ipp +++ b/include/llfio/v2.0/detail/impl/dynamic_thread_pool_group.ipp @@ -1089,7 +1089,6 @@ namespace detail if(invoketimer) { wi->_internalworkh = self; - wi->_internaltimerh = nullptr; #if 1 // LLFIO_DYNAMIC_THREAD_POOL_GROUP_PRINTING std::cout << "*** DTP " << self << " executes timer item " << wi << std::endl; #endif @@ -1097,7 +1096,6 @@ namespace detail g.unlock(); _timerthread(wi, nullptr); g.lock(); - // wi->_internalworkh should be null, however wi may also no longer exist goto restart; } #if 1 // LLFIO_DYNAMIC_THREAD_POOL_GROUP_PRINTING |