~ubuntu-branches/ubuntu/breezy/aqsis/breezy

« back to all changes in this revision

Viewing changes to boost/boost/thread/exceptions.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Will Newton
  • Date: 2004-12-07 20:06:49 UTC
  • Revision ID: james.westby@ubuntu.com-20041207200649-fccswkrvp4oc8lmn
Tags: upstream-0.9.3
ImportĀ upstreamĀ versionĀ 0.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (C) 2001-2003
 
2
// William E. Kempf
 
3
//
 
4
// Permission to use, copy, modify, distribute and sell this software
 
5
// and its documentation for any purpose is hereby granted without fee,
 
6
// provided that the above copyright notice appear in all copies and
 
7
// that both that copyright notice and this permission notice appear
 
8
// in supporting documentation.  William E. Kempf makes no representations
 
9
// about the suitability of this software for any purpose.
 
10
// It is provided "as is" without express or implied warranty.
 
11
 
 
12
#ifndef BOOST_THREAD_EXCEPTIONS_PDM070801_H
 
13
#define BOOST_THREAD_EXCEPTIONS_PDM070801_H
 
14
 
 
15
#include <boost/config.hpp>
 
16
#include <boost/thread/detail/config.hpp>
 
17
 
 
18
//  pdm: Sorry, but this class is used all over the place & I end up
 
19
//       with recursive headers if I don't separate it
 
20
//  wek: Not sure why recursive headers would cause compilation problems
 
21
//       given the include guards, but regardless it makes sense to
 
22
//       seperate this out any way.
 
23
 
 
24
#include <stdexcept>
 
25
 
 
26
namespace boost {
 
27
 
 
28
class BOOST_THREAD_DECL lock_error : public std::logic_error
 
29
{
 
30
public:
 
31
    lock_error();
 
32
};
 
33
 
 
34
class BOOST_THREAD_DECL thread_resource_error : public std::runtime_error
 
35
{
 
36
public:
 
37
    thread_resource_error();
 
38
};
 
39
 
 
40
} // namespace boost
 
41
 
 
42
// Change log:
 
43
//    3 Jan 03  WEKEMPF Modified for DLL implementation.
 
44
 
 
45
#endif // BOOST_THREAD_CONFIG_PDM070801_H