mirror of
https://github.com/boostorg/thread.git
synced 2026-01-22 17:52:18 +00:00
111 lines
4.4 KiB
HTML
111 lines
4.4 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<link rel="stylesheet" type="text/css" href="../../../boost.css">
|
|
<title>Boost.Threads - Header <boost/thread/exceptions.hpp></title>
|
|
</head>
|
|
<body link="#0000ff" vlink="#800080">
|
|
<table border="0" cellpadding="7" cellspacing="0" width="100%" summary=
|
|
"header">
|
|
<tr>
|
|
<td valign="top" width="300">
|
|
<h3><a href="../../../index.htm"><img height="86" width="277" alt="C++ Boost" src="../../../c++boost.gif" border="0"></a></h3>
|
|
</td>
|
|
<td valign="top">
|
|
<h1 align="center">Boost.Threads</h1>
|
|
<h2 align="center">Header <<a href="../../../boost/thread/exceptions.hpp">boost/thread/exceptions.hpp</a>></h2>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr>
|
|
<h2>Contents</h2>
|
|
<dl class="page-index">
|
|
<dt><a href="#introduction">Introduction</a></dt>
|
|
<dt><a href="#classes">Classes</a></dt>
|
|
<dl class="page-index">
|
|
<dt><a href="#class-lock_error">Class <code>lock_error</code></a></dt>
|
|
<dl class="page-index">
|
|
<dt><a href="#class-lock_error-synopsis">Class <code>lock_error</code> synopsis</a></dt>
|
|
<dt><a href="#class-lock_error-ctors">Class <code>lock_error</code> constructors
|
|
and destructor</a></dt>
|
|
</dl>
|
|
<dt><a href="#class-thread_resource_error">Class <code>thread_resource_error</code></a></dt>
|
|
<dl class="page-index">
|
|
<dt><a href="#class-thread_resource_error-synopsis">Class <code>thread_resource_error</code>
|
|
synopsis</a></dt>
|
|
<dt><a href="#class-thread_resource_error-ctors">Class <code>thread_resource_error</code>
|
|
constructors and destructor</a></dt>
|
|
</dl>
|
|
</dl>
|
|
</dl>
|
|
<hr>
|
|
<h2><a name="introduction"></a>Introduction</h2>
|
|
<p>Include the header <<a href="../../../boost/thread/exceptions.hpp">boost/thread/exceptions.hpp</a>>
|
|
to define the exception types that may be thrown by <b>Boost.Threads</b> classes.</p>
|
|
<h2><a name="classes"></a>Classes</h2>
|
|
<h3><a name="class-lock_error"></a>Class <code>lock_error</code></h3>
|
|
<p>The lock_error class defines an exception type thrown to indicate a locking
|
|
related error has been detected. Examples of such errors include a lock operation
|
|
which can be determined to result in a deadlock, or unlock operations attempted
|
|
by a thread that does not own the lock. </p>
|
|
<h4><a name="class-lock_error-synopsis"></a>Class <code>lock_error</code> synopsis</h4>
|
|
<pre>
|
|
namespace boost
|
|
{
|
|
class lock_error : public std::logical_error
|
|
{
|
|
public:
|
|
lock_error();
|
|
};
|
|
};
|
|
</pre>
|
|
<h4><a name="class-lock_error-ctors"></a>Class <code>lock_error</code> constructors
|
|
and destructor</h4>
|
|
<pre>
|
|
lock_error();
|
|
</pre>
|
|
<dl class="function-semantics">
|
|
<dt><b>Effects:</b> Constructs a <code>lock_error</code> object.</dt>
|
|
</dl>
|
|
<h3><a name="class-thread_resource_error"></a>Class <code>thread_resource_error</code></h3>
|
|
<p>The thread_resource_error class defines an exception type that is thrown by
|
|
constructors in the Boost.Threads library when thread related resources can
|
|
not be acquired. This does not include memory allocation failures which instead
|
|
throw std::bad_alloc. </p>
|
|
<h4><a name="class-thread_resource_error-synopsis"></a>Class <code>thread_resource_error</code>
|
|
synopsis</h4>
|
|
<pre>
|
|
namespace boost
|
|
{
|
|
class thread_resource_error : public std::runtime_error
|
|
{
|
|
public:
|
|
thread_resource_error();
|
|
};
|
|
};
|
|
</pre>
|
|
<h4><a name="class-thread_resource_error-ctors"></a>Class <code>thread_resource_error</code>
|
|
constructors and destructor</h4>
|
|
<pre>
|
|
thread_resource_error();
|
|
</pre>
|
|
<dl class="function-semantics">
|
|
<dt><b>Effects:</b> Constructs a <code>thread_resource_error</code> object.</dt>
|
|
</dl>
|
|
<hr>
|
|
<p>Revised
|
|
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->
|
|
05 November, 2001
|
|
<!--webbot bot="Timestamp" endspan i-checksum="39359" -->
|
|
</p>
|
|
<p><i>© Copyright <a href="mailto:wekempf@cox.net">William E. Kempf</a> 2001-2002.
|
|
All Rights Reserved.</i></p>
|
|
<p>Permission to use, copy, modify, distribute and sell this software and its
|
|
documentation for any purpose is hereby granted without fee, provided that the
|
|
above copyright notice appear in all copies and that both that copyright notice
|
|
and this permission notice appear in supporting documentation. William E. Kempf
|
|
makes no representations about the suitability of this software for any purpose.
|
|
It is provided "as is" without express or implied warranty.</p>
|
|
</body>
|
|
</html>
|