1 | <?xml version="1.0" encoding="utf-8"?> |
---|
2 | <!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" |
---|
3 | "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd" [ |
---|
4 | <!ENTITY % threads.entities SYSTEM "entities.xml"> |
---|
5 | %threads.entities; |
---|
6 | ]> |
---|
7 | <header name="boost/thread/exceptions.hpp" |
---|
8 | last-revision="$Date: 2004/07/17 04:33:59 $"> |
---|
9 | <namespace name="boost"> |
---|
10 | <class name="lock_error"> |
---|
11 | <purpose> |
---|
12 | <simpara>The lock_error class defines an exception type thrown |
---|
13 | to indicate a locking related error has been detected.</simpara> |
---|
14 | </purpose> |
---|
15 | |
---|
16 | <description> |
---|
17 | <simpara>Examples of errors indicated by a lock_error exception |
---|
18 | include a lock operation which can be determined to result in a |
---|
19 | deadlock, or unlock operations attempted by a thread that does |
---|
20 | not own the lock.</simpara> |
---|
21 | </description> |
---|
22 | |
---|
23 | <inherit access="public"> |
---|
24 | <type><classname>std::logical_error</classname></type> |
---|
25 | </inherit> |
---|
26 | |
---|
27 | <constructor> |
---|
28 | <effects><simpara>Constructs a <code>lock_error</code> object. |
---|
29 | </simpara></effects> |
---|
30 | </constructor> |
---|
31 | </class> |
---|
32 | |
---|
33 | <class name="thread_resource_error"> |
---|
34 | <purpose> |
---|
35 | <simpara>The <classname>thread_resource_error</classname> class |
---|
36 | defines an exception type that is thrown by constructors in the |
---|
37 | &Boost.Threads; library when thread-related resources can not be |
---|
38 | acquired.</simpara> |
---|
39 | </purpose> |
---|
40 | |
---|
41 | <description> |
---|
42 | <simpara><classname>thread_resource_error</classname> is used |
---|
43 | only when thread-related resources cannot be acquired; memory |
---|
44 | allocation failures are indicated by |
---|
45 | <classname>std::bad_alloc</classname>.</simpara> |
---|
46 | </description> |
---|
47 | |
---|
48 | <inherit access="public"> |
---|
49 | <type><classname>std::runtime_error</classname></type> |
---|
50 | </inherit> |
---|
51 | |
---|
52 | <constructor> |
---|
53 | <effects><simpara>Constructs a <code>thread_resource_error</code> |
---|
54 | object.</simpara></effects> |
---|
55 | </constructor> |
---|
56 | </class> |
---|
57 | </namespace> |
---|
58 | </header> |
---|