| [29] | 1 | // Copyright (C) 2001-2003 |
|---|
| 2 | // William E. Kempf |
|---|
| 3 | // |
|---|
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
|---|
| 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
|---|
| 6 | |
|---|
| 7 | #include <boost/thread/detail/config.hpp> |
|---|
| 8 | |
|---|
| 9 | #include <boost/thread/exceptions.hpp> |
|---|
| 10 | #include <cstring> |
|---|
| 11 | #include <string> |
|---|
| 12 | |
|---|
| 13 | namespace boost { |
|---|
| 14 | |
|---|
| 15 | thread_exception::thread_exception() |
|---|
| 16 | : m_sys_err(0) |
|---|
| 17 | { |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| 20 | thread_exception::thread_exception(int sys_err_code) |
|---|
| 21 | : m_sys_err(sys_err_code) |
|---|
| 22 | { |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | thread_exception::~thread_exception() throw() |
|---|
| 26 | { |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | int thread_exception::native_error() const |
|---|
| 30 | { |
|---|
| 31 | return m_sys_err; |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | lock_error::lock_error() |
|---|
| 35 | { |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | lock_error::lock_error(int sys_err_code) |
|---|
| 39 | : thread_exception(sys_err_code) |
|---|
| 40 | { |
|---|
| 41 | } |
|---|
| 42 | |
|---|
| 43 | lock_error::~lock_error() throw() |
|---|
| 44 | { |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | const char* lock_error::what() const throw() |
|---|
| 48 | { |
|---|
| 49 | return "boost::lock_error"; |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | thread_resource_error::thread_resource_error() |
|---|
| 53 | { |
|---|
| 54 | } |
|---|
| 55 | |
|---|
| 56 | thread_resource_error::thread_resource_error(int sys_err_code) |
|---|
| 57 | : thread_exception(sys_err_code) |
|---|
| 58 | { |
|---|
| 59 | } |
|---|
| 60 | |
|---|
| 61 | thread_resource_error::~thread_resource_error() throw() |
|---|
| 62 | { |
|---|
| 63 | } |
|---|
| 64 | |
|---|
| 65 | const char* thread_resource_error::what() const throw() |
|---|
| 66 | { |
|---|
| 67 | return "boost::thread_resource_error"; |
|---|
| 68 | } |
|---|
| 69 | |
|---|
| 70 | unsupported_thread_option::unsupported_thread_option() |
|---|
| 71 | { |
|---|
| 72 | } |
|---|
| 73 | |
|---|
| 74 | unsupported_thread_option::unsupported_thread_option(int sys_err_code) |
|---|
| 75 | : thread_exception(sys_err_code) |
|---|
| 76 | { |
|---|
| 77 | } |
|---|
| 78 | |
|---|
| 79 | unsupported_thread_option::~unsupported_thread_option() throw() |
|---|
| 80 | { |
|---|
| 81 | } |
|---|
| 82 | |
|---|
| 83 | const char* unsupported_thread_option::what() const throw() |
|---|
| 84 | { |
|---|
| 85 | return "boost::unsupported_thread_option"; |
|---|
| 86 | } |
|---|
| 87 | |
|---|
| 88 | invalid_thread_argument::invalid_thread_argument() |
|---|
| 89 | { |
|---|
| 90 | } |
|---|
| 91 | |
|---|
| 92 | invalid_thread_argument::invalid_thread_argument(int sys_err_code) |
|---|
| 93 | : thread_exception(sys_err_code) |
|---|
| 94 | { |
|---|
| 95 | } |
|---|
| 96 | |
|---|
| 97 | invalid_thread_argument::~invalid_thread_argument() throw() |
|---|
| 98 | { |
|---|
| 99 | } |
|---|
| 100 | |
|---|
| 101 | const char* invalid_thread_argument::what() const throw() |
|---|
| 102 | { |
|---|
| 103 | return "boost::invalid_thread_argument"; |
|---|
| 104 | } |
|---|
| 105 | |
|---|
| 106 | thread_permission_error::thread_permission_error() |
|---|
| 107 | { |
|---|
| 108 | } |
|---|
| 109 | |
|---|
| 110 | thread_permission_error::thread_permission_error(int sys_err_code) |
|---|
| 111 | : thread_exception(sys_err_code) |
|---|
| 112 | { |
|---|
| 113 | } |
|---|
| 114 | |
|---|
| 115 | thread_permission_error::~thread_permission_error() throw() |
|---|
| 116 | { |
|---|
| 117 | } |
|---|
| 118 | |
|---|
| 119 | const char* thread_permission_error::what() const throw() |
|---|
| 120 | { |
|---|
| 121 | return "boost::thread_permission_error"; |
|---|
| 122 | } |
|---|
| 123 | |
|---|
| 124 | } // namespace boost |
|---|