fastdo  0.5.12
winux::Mutex类 参考

互斥量 更多...

#include <threads.hpp>

类 winux::Mutex 继承关系图:
winux::Mutex 的协作图:

Public 成员函数

 Mutex (bool isCreate=false)
 
 ~Mutex ()
 
 Mutex (Mutex &&other)
 
Mutexoperator= (Mutex &&other)
 
int create ()
 创建并初始化 更多...
 
int destroy ()
 销毁 更多...
 
bool lock ()
 
bool tryLock ()
 
bool unlock ()
 
MutexAttrattr ()
 设置互斥量属性对象,下次create()时生效 更多...
 
- Public 成员函数 继承自 winux::ILockObj
virtual ~ILockObj ()
 

友元

class Condition
 

详细描述

互斥量

在文件 threads.hpp256 行定义.

构造及析构函数说明

winux::Mutex::Mutex ( bool  isCreate = false)
explicit
winux::Mutex::~Mutex ( )
winux::Mutex::Mutex ( Mutex &&  other)

成员函数说明

MutexAttr& winux::Mutex::attr ( )

设置互斥量属性对象,下次create()时生效

int winux::Mutex::create ( )

创建并初始化

int winux::Mutex::destroy ( )

销毁

bool winux::Mutex::lock ( )
virtual

实现了 winux::ILockObj.

Mutex& winux::Mutex::operator= ( Mutex &&  other)
bool winux::Mutex::tryLock ( )
virtual

实现了 winux::ILockObj.

bool winux::Mutex::unlock ( )
virtual

实现了 winux::ILockObj.

友元及相关函数文档

friend class Condition
friend

在文件 threads.hpp280 行定义.


该类的文档由以下文件生成: