1 /* $Id: thread_pool_observer.hpp,v 1.10 2006-06-10 14:29:13 adam Exp $
2 Copyright (c) 2005-2006, Index Data.
4 See the LICENSE file for details
7 #ifndef YP2_THREAD_POOL_OBSERVER_HPP
8 #define YP2_THREAD_POOL_OBSERVER_HPP
10 #include <boost/scoped_ptr.hpp>
12 #include <yazpp/socket-observer.h>
13 #include <yaz/yconfig.h>
15 namespace metaproxy_1 {
16 class IThreadPoolMsg {
18 virtual IThreadPoolMsg *handle() = 0;
19 virtual void result() = 0;
20 virtual ~IThreadPoolMsg();
23 class ThreadPoolSocketObserver : public yazpp_1::ISocketObserver {
27 ThreadPoolSocketObserver(yazpp_1::ISocketObservable *obs,
29 virtual ~ThreadPoolSocketObserver();
30 void put(IThreadPoolMsg *m);
31 IThreadPoolMsg *get();
34 void socketNotify(int event);
35 boost::scoped_ptr<Rep> m_p;
43 * indent-tabs-mode: nil
44 * c-file-style: "stroustrup"
46 * vim: shiftwidth=4 tabstop=8 expandtab