stafzipmutexlock.h
来自「Software Testing Automation Framework (S」· C头文件 代码 · 共 62 行
H
62 行
/*****************************************************************************//* 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 + =
减小字号Ctrl + -
显示快捷键?