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

📄 classmutexlocker.html

📁 美国COPLEY驱动器,程序开发工具之一.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Copley Motion Library: MutexLocker Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.4 --><div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div><h1>MutexLocker Class Reference</h1><!-- doxytag: class="MutexLocker" --><a href="classMutexLocker-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>This is a utility class that locks a mutex in it's constructor, and unlocks it in it's destructor. <p>It can be used to ensure that a mutex is properly unlocked when a function returns. Just create a temporary MutexLocker object and pass it the mutex to lock in it's constructor. The mutex will be automatically unlocked when the function returns and the MutexLocker is deleted.<p><p>Definition at line <a class="el" href="CML__Threads_8h-source.html#l00177">177</a> of file <a class="el" href="CML__Threads_8h-source.html">CML_Threads.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0"></a><!-- doxytag: member="MutexLocker::MutexLocker" ref="a0" args="(Mutex &amp;m)" -->&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMutexLocker.html#a0">MutexLocker</a> (<a class="el" href="classMutex.html">Mutex</a> &amp;m)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lock the passed mutex. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1"></a><!-- doxytag: member="MutexLocker::~MutexLocker" ref="a1" args="()" -->&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMutexLocker.html#a1">~MutexLocker</a> ()</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unlock the mutex. <br></td></tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="CML__Threads_8h-source.html">CML_Threads.h</a></ul><hr><address style="align: right;"><small>Copley Motion Library, Copyright (c) 2002-2003<a href="http://www.copleycontrols.com"><img src="CCC_logo.gif" alt="Copley Controls Corp." align="middle" border=0 ></a></small></address></body></html>

⌨️ 快捷键说明

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