void thread_data::operator delete(void *p, thread_pool& pool) { if (0 != p) { #ifdef HPX_DEBUG_THREAD_POOL using namespace std; // some systems have memset in namespace std memset (p, freed_value, sizeof(thread_data)); #endif pool.deallocate(static_cast<thread_data*>(p)); } }
void thread_data::operator delete(void *p, thread_pool& pool) { if (0 != p) pool.deallocate(reinterpret_cast<thread_data*>(p)); }
void thread_data::operator delete(void *p, thread_pool& pool) { if (0 != p) pool.deallocate(static_cast<thread_data*>(p)); }