Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET
Apache Qpid Documentation
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
qpid
sys
Monitor.h
Go to the documentation of this file.
1
#ifndef _sys_Monitor_h
2
#define _sys_Monitor_h
3
4
/*
5
*
6
* Licensed to the Apache Software Foundation (ASF) under one
7
* or more contributor license agreements. See the NOTICE file
8
* distributed with this work for additional information
9
* regarding copyright ownership. The ASF licenses this file
10
* to you under the Apache License, Version 2.0 (the
11
* "License"); you may not use this file except in compliance
12
* with the License. You may obtain a copy of the License at
13
*
14
* http://www.apache.org/licenses/LICENSE-2.0
15
*
16
* Unless required by applicable law or agreed to in writing,
17
* software distributed under the License is distributed on an
18
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
* KIND, either express or implied. See the License for the
20
* specific language governing permissions and limitations
21
* under the License.
22
*
23
*/
24
25
#include "
qpid/sys/Condition.h
"
26
27
namespace
qpid
{
28
namespace
sys {
29
33
class
Monitor
:
public
Mutex
,
public
Condition
{
34
public
:
35
inline
void
wait
();
36
inline
bool
wait
(
const
AbsTime
& absoluteTime);
37
};
38
39
40
void
Monitor::wait
() {
41
Condition::wait
(*
this
);
42
}
43
44
bool
Monitor::wait
(
const
AbsTime
& absoluteTime) {
45
return
Condition::wait
(*
this
, absoluteTime);
46
}
47
48
}}
49
#endif
qpid::sys::AbsTime
Class to represent an instant in time.
Definition:
Time.h:80
qpid::sys::Monitor::wait
void wait()
Definition:
Monitor.h:40
qpid::sys::Condition
A condition variable for thread synchronization.
Definition:
Condition.h:40
qpid
This file was automatically generated from the AMQP specification.
Definition:
Address.h:27
qpid::sys::Mutex
Mutex lock.
Definition:
Mutex.h:35
qpid::sys::Condition::wait
void wait(Mutex &)
Definition:
Condition.h:62
qpid::sys::Monitor
A monitor is a condition variable and a mutex.
Definition:
Monitor.h:33
Condition.h
Qpid C++ API Reference
Generated on Fri Feb 6 2015 for Qpid C++ Client API by
1.8.9.1