X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Ftest_thread_pool_observer.cpp;h=89f8f04d8e9d9fc927bebbb2c54f545168648b77;hb=87591c413bf815ed70329dabe2c8dd767eb522f5;hp=bde7c3dccf734ec9cc136904540f32ba5cd157f0;hpb=c1d953eee6c00432493bc364da6284704ccd9cc2;p=metaproxy-moved-to-github.git diff --git a/src/test_thread_pool_observer.cpp b/src/test_thread_pool_observer.cpp index bde7c3d..89f8f04 100644 --- a/src/test_thread_pool_observer.cpp +++ b/src/test_thread_pool_observer.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2011 Index Data + Copyright (C) 2005-2012 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -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++;