Ice 3.7 C++11 API Reference
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
c
e
g
i
n
o
p
r
s
t
u
w
Variables
b
c
e
g
i
k
n
p
s
t
u
w
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
Typedefs
e
i
l
p
s
t
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
e
g
i
o
t
v
Macros
e
g
i
o
t
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
IceUtil
CountDownLatch.h
Go to the documentation of this file.
1
//
2
// Copyright (c) ZeroC, Inc. All rights reserved.
3
//
4
5
#ifndef ICE_UTIL_COUNT_DOWN_LATCH_H
6
#define ICE_UTIL_COUNT_DOWN_LATCH_H
7
8
#include <
IceUtil/Config.h
>
9
10
namespace
IceUtilInternal
11
{
12
13
//
14
// See java.util.concurrent.CountDownLatch in Java 1.5
15
//
16
17
class
ICE_API
CountDownLatch
18
{
19
public
:
20
21
CountDownLatch(
int
);
22
~CountDownLatch();
23
24
void
await()
const
;
25
void
countDown();
26
int
getCount()
const
;
27
28
private
:
29
30
#ifdef _WIN32
31
mutable
LONG _count;
32
HANDLE _event;
33
#else
34
int
_count;
35
mutable
pthread_mutex_t _mutex;
36
mutable
pthread_cond_t _cond;
37
38
inline
void
lock()
const
;
39
inline
void
unlock()
const
;
40
#endif
41
};
42
43
}
44
45
#endif
ICE_API
#define ICE_API
Definition:
Config.h:197
Config.h
Generated by
1.8.20