mutex.h
/*
Copyright (c) 2007-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef MUTEX_H__
#define MUTEX_H__
#include "macros.h"
namespace gloox
{
namespace util
{
class GLOOX_API Mutex
{
public:
Mutex();
~Mutex();
void lock();
bool trylock();
void unlock();
private:
class MutexImpl;
Mutex& operator=( const Mutex& );
MutexImpl* m_mutex;
};
}
}
#endif // MUTEX_H__
gloox::util::Mutex::Mutex
Mutex()
Definition mutex.cpp:111
gloox::util::Mutex::trylock
bool trylock()
Definition mutex.cpp:126
gloox::util::Mutex::unlock
void unlock()
Definition mutex.cpp:131
gloox::util::Mutex::lock
void lock()
Definition mutex.cpp:121
gloox::util
A namespace holding a couple utility functions.
Definition atomicrefcount.cpp:36
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28