⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stafmutexseminlimpl.cpp

📁 Software Testing Automation Framework (STAF)的开发代码
💻 CPP
字号:
/*****************************************************************************//* Software Testing Automation Framework (STAF)                              *//* (C) Copyright IBM Corp. 2001                                              *//*                                                                           *//* This software is licensed under the Common Public License (CPL) V1.0.     *//*****************************************************************************/#ifndef STAF_MutexSemInlImpl#define STAF_MutexSemInlImpl#include "STAF.h"#include "STAFMutexSem.h"#include "STAFRefPtr.h"#include "STAFException.h"STAF_INLINE STAFMutexSem::STAFMutexSem() : fMutexImpl(0){    unsigned int osRC = 0;    STAFRC_t rc = STAFMutexSemConstruct(&fMutexImpl, 0, &osRC);    STAFException::checkRC(rc, "STAFMutexSemConstruct", osRC);}STAF_INLINE STAFRC_t STAFMutexSem::request(unsigned int timeout){    unsigned int osRC = 0;    STAFRC_t rc = STAFMutexSemRequest(fMutexImpl, timeout, &osRC);    if ((rc != kSTAFOk) && (rc != kSTAFTimeout))        STAFException::checkRC(rc, "STAFMutexSemRequest", osRC);    return rc;}STAF_INLINE void STAFMutexSem::release(){    unsigned int osRC = 0;    STAFRC_t rc = STAFMutexSemRelease(fMutexImpl, &osRC);    STAFException::checkRC(rc, "STAFMutexSemRelease", osRC);}STAF_INLINE STAFMutexSem::~STAFMutexSem(){  unsigned int osRC = 0;  STAFRC_t rc = STAFMutexSemDestruct(&fMutexImpl, &osRC);}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -