forked from mit-ll/LL-DLEP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThread.h
More file actions
44 lines (31 loc) · 643 Bytes
/
Thread.h
File metadata and controls
44 lines (31 loc) · 643 Bytes
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
41
42
43
44
/*
* Dynamic Link Exchange Protocol (DLEP)
*
* Copyright (C) 2015, 2016 Massachusetts Institute of Technology
*/
/// @file
/// Portability header to make it easy to choose between Boost threads
/// and C++ standard library (std::) threads.
#ifndef THREAD_H
#define THREAD_H
#ifdef USE_BOOST_THREADS
#include <boost/thread.hpp>
namespace LLDLEP
{
namespace internal
{
typedef boost::thread Thread;
} // namespace internal
} // namespace LLDLEP
#else
// use std threads
#include <thread>
namespace LLDLEP
{
namespace internal
{
typedef std::thread Thread;
} // namespace internal
} // namespace LLDLEP
#endif
#endif // THREAD_H