1 // Author: Mihai Niculescu 2013
3 /**************************************************************************
4 * Copyright(c) 1998-2013, ALICE Experiment at CERN, all rights reserved. *
5 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
6 * full copyright notice. *
7 **************************************************************************/
9 #ifndef __AliRecoServerThread_H__
10 #define __AliRecoServerThread_H__
13 #include <RQ_OBJECT.h>
15 #include <TCondition.h>
17 #include "AliThreadedSocket.h"
22 class AliReconstruction;
25 class AliRecoServerThread : public AliThreadedSocket
28 AliRecoServerThread(zmq::context_t *context, AliReconstruction* reco);
29 virtual ~AliRecoServerThread();
32 Bool_t Start(const char* endpoint);
34 const char* GetHost() const { return fHost.Data(); }
35 AliReconstruction* GetReconstruction() { return fReco; }
36 TCondition* Condition() { return fCond; }
41 AliReconstruction* fReco;
44 TCondition* fCond; // condition whether to stop reco/clean exit thread
48 AliRecoServerThread(const AliRecoServerThread&); // Not implemented
49 AliRecoServerThread& operator=(const AliRecoServerThread&); // Not implemented
53 ClassDef(AliRecoServerThread, 0);
55 #endif /* __AliReconstructionThread_H__ */