KSquare Utilities
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
GlobalGoalKeeper.h
Go to the documentation of this file.
1
/* GlobalGoalKeeper.h -- Implements blocking routines to support thread synchronization.
2
* Copyright (C) 1994-2011 Kurt Kramer
3
* For conditions of distribution and use, see copyright notice in KKB.h
4
*/
5
#
ifndef
_KKU_GLOBALGOALKEEPER_
6
#
define
_KKU_GLOBALGOALKEEPER_
7
8
9
#
include
"KKStr.h"
10
11
namespace
KKB
12
{
13
#
if
!
defined
(
_GoalKeeper_Defined_
)
14
class
GoalKeeper
;
15
typedef
GoalKeeper
*
GoalKeeperPtr
;
16
#
endif
17
18
19
/**
20
*@brief Maintains one instance of a GoalKeeper object that can be used anywhere in the application.
21
*@details It is meant to be used for simple cases.
22
*/
23
class
GlobalGoalKeeper
24
{
25
public
:
26
static
void
StartBlock
();
27
static
void
EndBlock
();
28
29
private
:
30
static
void
CreateGlobalGoalie ();
31
static
void
CleanUp ();
32
33
static
GoalKeeperPtr
globalGoalie;
34
};
/* GlobalGoalKeeper */
35
}
36
37
#
endif
KKB::GoalKeeperPtr
GoalKeeper * GoalKeeperPtr
Definition:
GlobalGoalKeeper.h:14
KKB::GoalKeeper
Definition:
GoalKeeper.h:38
KKB::KKTHreadPtr
KKTHread * KKTHreadPtr
Definition:
KKThreadManager.h:20
KKB::GlobalGoalKeeper::EndBlock
static void EndBlock()
Definition:
GlobalGoalKeeper.cpp:51
KKB::GlobalGoalKeeper::StartBlock
static void StartBlock()
Definition:
GlobalGoalKeeper.cpp:42
KKB::GlobalGoalKeeper
Maintains one instance of a GoalKeeper object that can be used anywhere in the application.
Definition:
GlobalGoalKeeper.h:23
KKBase
GlobalGoalKeeper.h
Generated on Thu Mar 31 2016 22:46:13 for KSquare Utilities by
1.8.11