GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Go4TaskHandler
TGo4ConnectorRunnable.cxx
Go to the documentation of this file.
1
// $Id: TGo4ConnectorRunnable.cxx 1031 2013-11-05 10:27:23Z linev $
2
//-----------------------------------------------------------------------
3
// The GSI Online Offline Object Oriented (Go4) Project
4
// Experiment Data Processing at EE department, GSI
5
//-----------------------------------------------------------------------
6
// Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7
// Planckstr. 1, 64291 Darmstadt, Germany
8
// Contact: http://go4.gsi.de
9
//-----------------------------------------------------------------------
10
// This software can be used under the license agreements as stated
11
// in Go4License.txt file which is part of the distribution.
12
//-----------------------------------------------------------------------
13
14
#include "
TGo4ConnectorRunnable.h
"
15
16
#include "
TGo4Log.h
"
17
#include "
TGo4Thread.h
"
18
#include "
TGo4ServerTask.h
"
19
#include "
TGo4TaskManager.h
"
20
21
TGo4ConnectorRunnable::TGo4ConnectorRunnable
(
const
char
* name,
TGo4ServerTask
* man) :
22
TGo4Runnable
(name,man)
23
{
24
fxTaskManager
= man->
GetTaskManager
();
25
}
26
27
Int_t
TGo4ConnectorRunnable::Run
(
void
* ptr)
28
{
29
// create new taskhandler and connect server to client:
30
Int_t rev =
fxTaskManager
->
ServeClient
();
31
// stop runnable for termination
32
if
(rev<-1)
fxGo4Thread
->
Stop
();
33
return
rev;
34
}
TGo4TaskManager.h
TGo4ConnectorRunnable.h
TGo4Runnable::fxGo4Thread
TGo4Thread * fxGo4Thread
Definition:
TGo4Runnable.h:76
TGo4Thread::Stop
Bool_t Stop()
Definition:
TGo4Thread.cxx:328
TGo4Log.h
TGo4TaskManager::ServeClient
Int_t ServeClient()
Definition:
TGo4TaskManager.cxx:80
TGo4ConnectorRunnable::fxTaskManager
TGo4TaskManager * fxTaskManager
Definition:
TGo4ConnectorRunnable.h:50
TGo4Thread.h
TGo4Runnable
Definition:
TGo4Runnable.h:33
TGo4ServerTask.h
TGo4ServerTask
Definition:
TGo4ServerTask.h:28
TGo4ConnectorRunnable::TGo4ConnectorRunnable
TGo4ConnectorRunnable()
TGo4ConnectorRunnable::Run
virtual Int_t Run(void *ptr)
Definition:
TGo4ConnectorRunnable.cxx:27
TGo4ServerTask::GetTaskManager
TGo4TaskManager * GetTaskManager()
Definition:
TGo4ServerTask.cxx:285
Generated on Fri Oct 26 2018 08:34:53 for GSI Object Oriented Online Offline (Go4) by
1.8.8