📄 stafzipmutexlock.h
字号:
/*****************************************************************************//* Software Testing Automation Framework (STAF) *//* (C) Copyright IBM Corp. 2004 *//* *//* This software is licensed under the Common Public License (CPL) V1.0. *//*****************************************************************************/#ifndef STAF_ZIPMUTEXLOCK#define STAF_ZIPMUTEXLOCK#ifdef __cplusplusextern "C"{#endifstruct ZipLock{ ZipLock() : lockSem(new STAFMutexSem, STAFMutexSemPtr::INIT), numOwners(0) { /* Do Nothing */ } STAFMutexSemPtr lockSem; unsigned int numOwners;};typedef std::map<STAFString, ZipLock> LockMap;#ifdef __cplusplus}#endifclass STAFZipMutexLock{private: // attributes LockMap sLockMap; STAFMutexSem sLockMapSem;public: // methods STAFZipMutexLock() { /* Do Nothing */ } void request(STAFString); void release(STAFString); ~STAFZipMutexLock() { /* Do Nothing */ }};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -