]> pilppa.org Git - libplpbus.git/blob - src/plpbus/ServerEventThread.hh
Memory leak fixes.
[libplpbus.git] / src / plpbus / ServerEventThread.hh
1 /*
2  * server_thread.hh
3  *
4  *  Created on: Jun 2, 2010
5  *      Author: lamikr
6  */
7
8 #ifndef SERVEREVENTTHREAD_HH_
9 #define SERVEREVENTTHREAD_HH_
10
11 #include <iostream>
12 #include <omniORB4/CORBA.h>
13
14 #include "RequestResponseBus.hh"
15 #include "OrbServerImpl.hh"
16
17 namespace plpbus {
18         class ServerEventThread : public omni_thread {
19                 public:
20                         ServerEventThread(plpbus_orb::OrbClient_ptr client,
21                                 const char *msg,
22                                 int period,
23                                 OrbServerImpl *server_obj);
24                         virtual void run(void* arg);
25
26                 private:
27                         plpbus_orb::OrbClient_var       _orb_client;
28                         CORBA::String_var               _orb_msg;
29                         int                             _interval;
30                         OrbServerImpl                   *_server_obj;
31         };
32 }
33
34 #endif /* SERVEREVENTTHREAD_HH_ */