/
threading-boost.h
40 lines (29 loc) · 1.11 KB
/
threading-boost.h
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
// threading-boost.h -- Threading support using C++11 boost:: types
//
// Copyright (C) 2009-2012 Miles Bader <miles@gnu.org>
//
// This source code is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 3, or (at
// your option) any later version. See the file COPYING for more details.
//
// Written by Miles Bader <miles@gnu.org>
//
//
// If threading is enabled, Thread is a wrapper for an appropriate system
// thread object. Otherwise, it provides empty definitions for various
// thread methods (so it should be always usable, even on systems without
// threading support).
//
#ifndef SNOGRAY_THREADING_BOOST_H
#define SNOGRAY_THREADING_BOOST_H
#include <boost/thread/thread.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition_variable.hpp>
namespace snogray {
typedef boost::thread RealThread;
typedef boost::mutex RealMutex;
typedef boost::unique_lock<boost::mutex> RealUniqueLock;
typedef boost::condition_variable RealCondVar;
}
#endif // SNOGRAY_THREADING_BOOST_H