X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Ftest_thread_pool_observer.cpp;h=89f8f04d8e9d9fc927bebbb2c54f545168648b77;hb=87591c413bf815ed70329dabe2c8dd767eb522f5;hp=a894caead2f0201aa9985b1a7590bc488000476f;hpb=50597d2f7d3607e91c94601eb8eb495d73be3eae;p=metaproxy-moved-to-github.git diff --git a/src/test_thread_pool_observer.cpp b/src/test_thread_pool_observer.cpp index a894cae..89f8f04 100644 --- a/src/test_thread_pool_observer.cpp +++ b/src/test_thread_pool_observer.cpp @@ -39,7 +39,8 @@ class My_Timer_Thread; class My_Msg : public mp::IThreadPoolMsg { public: mp::IThreadPoolMsg *handle(); - void result(); + void result(const char *t_info); + bool cleanup(void *info); int m_val; My_Timer_Thread *m_timer; }; @@ -70,7 +71,12 @@ mp::IThreadPoolMsg *My_Msg::handle() return res; } -void My_Msg::result() +bool My_Msg::cleanup(void *info) +{ + return false; +} + +void My_Msg::result(const char *t_info) { m_timer->m_sum += m_val; m_timer->m_responses++;