GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
Go4TaskHandler
TGo4ConnectorRunnable.cxx
Go to the documentation of this file.
1
// $Id$
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 fuer 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 "
TGo4Thread.h
"
17
#include "
TGo4ServerTask.h
"
18
#include "
TGo4TaskManager.h
"
19
20
TGo4ConnectorRunnable::TGo4ConnectorRunnable
(
const
char
*name,
TGo4ServerTask
*man) :
21
TGo4Runnable
(name,man)
22
{
23
fxTaskManager
= man->
GetTaskManager
();
24
}
25
26
Int_t
TGo4ConnectorRunnable::Run
(
void
*ptr)
27
{
28
// create new taskhandler and connect server to client:
29
Int_t rev =
fxTaskManager
->ServeClient();
30
// stop runnable for termination
31
if
(rev<-1)
fxGo4Thread
->Stop();
32
return
rev;
33
}
TGo4ConnectorRunnable.h
TGo4ServerTask.h
TGo4TaskManager.h
TGo4Thread.h
TGo4ConnectorRunnable::fxTaskManager
TGo4TaskManager * fxTaskManager
1
Definition
TGo4ConnectorRunnable.h:50
TGo4ConnectorRunnable::TGo4ConnectorRunnable
TGo4ConnectorRunnable()
TGo4ConnectorRunnable::Run
Int_t Run(void *ptr) override
The working function which runs in the thread.
Definition
TGo4ConnectorRunnable.cxx:26
TGo4Runnable::TGo4Runnable
TGo4Runnable(const TGo4Runnable &right)
Definition
TGo4Runnable.cxx:24
TGo4Runnable::fxGo4Thread
TGo4Thread * fxGo4Thread
Backlink to thread which runs this.
Definition
TGo4Runnable.h:77
TGo4ServerTask
Server task.
Definition
TGo4ServerTask.h:31
TGo4ServerTask::GetTaskManager
TGo4TaskManager * GetTaskManager()
Definition
TGo4ServerTask.cxx:259
Generated by
1.13.2