1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
<HTML>
<HEAD>
<TITLE>class toLocker</TITLE>
<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
<TABLE BORDER="0">
<TR><TD valign="top" align="left" cellspacing="10">
<h1>class toLocker</h1>
</TD>
<TD valign="top" align="right" colspan="1"> This is a convenience class that holds a lock for the duration of the scope
of the object. <small><A HREF="#longdesc">More...</A></small></TD></TR>
</TABLE>
<HR>
<TABLE BORDER="0">
<TR><TH>Definition</TH><TD><code>#include <<A HREF="tothread_h.html">tothread.h</A>></code></TD></TR>
<TR><TH><A HREF="full-list-toLocker.html">List of all Methods</A></TH></TR>
</TABLE>
</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Methods</h4><ul><LI> <b><A HREF="#ref3">toLocker</A></b> (<A HREF="toLock.html">toLock</A> &lock)
</LI>
<LI> <b><A HREF="#ref4">~toLocker</A></b> ()
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> This is a convenience class that holds a lock for the duration of the scope
of the object. It is very convenient to use if exceptions can be thrown, simply
declare an auto <A HREF="toLocker.html#toLocker">toLocker</A> to hold the lock. If any exception is thrown the
locker will be deallocated and the lock released.
</p>
<A NAME="toLocker"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>toLocker</strong> (<A HREF="toLock.html">toLock</A> &lock)
<br></td><td align="right"><h3><strong>toLocker</strong></h3></td></tr></table><p></p><p> Create locker.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>lock</i></TD><TD align="left" valign="top">Lock to hold.
</TD></TR>
</TABLE></P>
<A NAME="~toLocker"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~toLocker</strong> ()
<br></td><td align="right"><h3><strong>~toLocker</strong></h3></td></tr></table><p></p><HR>
<table>
</table>
</BODY>
</HTML>
|