forked from dardok/eqEarth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipe.cpp
90 lines (66 loc) · 2.07 KB
/
pipe.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#include "pipe.h"
#include "config.h"
namespace eqEarth
{
// ----------------------------------------------------------------------------
Pipe::Pipe( eq::Node* parent )
: eq::Pipe( parent )
{
LBINFO << "=====> Pipe::Pipe(" << (void *)this << ")" << std::endl;
}
Pipe::~Pipe( )
{
LBINFO << "<===== Pipe::~Pipe(" << (void *)this << ")" << std::endl;
}
bool Pipe::configInit( const eq::uint128_t& initID )
{
LBINFO << "-----> Pipe::configInit(" << initID << ")" << std::endl;
bool init = false;
if( !eq::Pipe::configInit( initID ))
goto out;
{
static_cast< Config* >( getConfig( ))->setThreadHint( isThreaded( ));
}
init = true;
out:
if( !init )
cleanup( );
LBINFO << "<----- Pipe::configInit(" << initID << ")" << std::endl;
return init;
}
bool Pipe::configExit( )
{
cleanup( );
return eq::Pipe::configExit( );
}
void Pipe::frameStart( const eq::uint128_t& frameID,
const uint32_t frameNumber )
{
//LBINFO << "-----> Pipe<" << getName( ) << ">::frameStart("
// << frameID << ", " << frameNumber << ")" << std::endl;
eq::Pipe::frameStart( frameID, frameNumber );
//LBINFO << "<----- Pipe<" << getName( ) << ">::frameStart("
// << frameID << ", " << frameNumber << ")" << std::endl;
}
void Pipe::frameFinish( const eq::uint128_t& frameID,
const uint32_t frameNumber )
{
//LBINFO << "-----> Pipe<" << getName( ) << ">::frameFinish("
// << frameID << ", " << frameNumber << ")" << std::endl;
eq::Pipe::frameFinish( frameID, frameNumber );
//LBINFO << "<----- Pipe<" << getName( ) << ">::frameFinish("
// << frameID << ", " << frameNumber << ")" << std::endl;
}
void Pipe::frameDrawFinish( const eq::uint128_t& frameID,
const uint32_t frameNumber )
{
//LBINFO << "-----> Pipe<" << getName( ) << ">::frameDrawFinish("
// << frameID << ", " << frameNumber << ")" << std::endl;
eq::Pipe::frameDrawFinish( frameID, frameNumber );
//LBINFO << "<----- Pipe<" << getName( ) << ">::frameDrawFinish("
// << frameID << ", " << frameNumber << ")" << std::endl;
}
void Pipe::cleanup( )
{
}
}