Condition
Go to the documentation of this file.
/* -*-c++-*- OpenThreads library, Copyright (C) 2002 - 2007 The Open Thread Group
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
//
// Condition - C++ condition class
// ~~~~~~~~~
//
#ifndef _OPENTHREADS_CONDITION_
#define _OPENTHREADS_CONDITION_
#include <OpenThreads/Exports>
#include <OpenThreads/Mutex>
namespace OpenThreads {
class OPENTHREAD_EXPORT_DIRECTIVE Condition {
public:
Condition();
virtual ~Condition();
virtual int wait(Mutex *mutex);
virtual int wait(Mutex *mutex, unsigned long int ms);
virtual int signal();
virtual int broadcast();
private:
Condition(const Condition &/*c*/) {};
Condition &operator=(const Condition &/*c*/) {return *(this);};
void *_prvData;
};
}
#endif // !_OPENTHREADS_CONDITION_
Exports
OPENTHREAD_EXPORT_DIRECTIVE
#define OPENTHREAD_EXPORT_DIRECTIVE
Definition Exports:20
Mutex
OpenThreads::Condition
This class provides an object-oriented thread condition interface.
Definition Condition:32
OpenThreads::Condition::wait
virtual int wait(Mutex *mutex)
OpenThreads::Condition::signal
virtual int signal()
OpenThreads::Condition::broadcast
virtual int broadcast()
OpenThreads::Condition::~Condition
virtual ~Condition()
OpenThreads::Condition::wait
virtual int wait(Mutex *mutex, unsigned long int ms)
OpenThreads::Condition::Condition
Condition()
OpenThreads::Mutex
This class provides an object-oriented thread mutex interface.
Definition Mutex:31
OpenThreads
Definition Affinity:26