X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_thread_pool_observer.cpp;h=89f8f04d8e9d9fc927bebbb2c54f545168648b77;hb=55a63876b5d793644526ffbcae18f71884932303;hp=eb4e33a57890ae845767a3d981ecc63c200c1597;hpb=d0123337d70b0fb97b578cc57467bb94980f1014;p=metaproxy-moved-to-github.git diff --git a/src/test_thread_pool_observer.cpp b/src/test_thread_pool_observer.cpp index eb4e33a..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-2009 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++;