Skip to content

Commit d945654

Browse files
committed
Minor changes to the thread_pool class and headers.
1 parent 7a3e856 commit d945654

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

concurrency/src/network/concurrency/thread_pool.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2010 Dean Michael Berris.
22
// Copyright 2012 Google, Inc.
3-
// Copyright (c) Glyn Matthews 2012.
3+
// Copyright (c) Glyn Matthews 2012, 2013.
44
// Distributed under the Boost Software License, Version 1.0.
55
// (See accompanying file LICENSE_1_0.txt or copy at
66
// http://www.boost.org/LICENSE_1_0.txt)
@@ -39,8 +39,8 @@ namespace network {
3939

4040
private:
4141

42-
struct pimpl;
43-
pimpl* pimpl_;
42+
struct impl;
43+
impl* pimpl_;
4444

4545
};
4646

concurrency/src/network/concurrency/thread_pool.ipp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2011 Dean Michael Berris <[email protected]>.
22
// Copyright 2011 Google, Inc.
3-
// Copyright (c) Glyn Matthews 2012.
3+
// Copyright (c) Glyn Matthews 2012, 2013.
44
// Distributed under the Boost Software License, Version 1.0.
55
// (See accompanying file LICENSE_1_0.txt or copy at
66
// http://www.boost.org/LICENSE_1_0.txt)
@@ -16,8 +16,8 @@
1616
namespace network {
1717
namespace concurrency {
1818

19-
struct thread_pool::pimpl {
20-
pimpl(std::size_t threads = 1,
19+
struct thread_pool::impl {
20+
impl(std::size_t threads = 1,
2121
io_service_ptr io_service = io_service_ptr(),
2222
std::vector<std::thread> worker_threads = std::vector<std::thread>())
2323
: threads_(threads),
@@ -58,7 +58,7 @@ namespace network {
5858
commit = true;
5959
}
6060

61-
~pimpl() {
61+
~impl() {
6262
sentinel_.reset();
6363
try {
6464
for (auto& thread : worker_threads_)
@@ -82,7 +82,7 @@ namespace network {
8282
io_service_ptr io_service,
8383
std::vector<std::thread> worker_threads)
8484
: pimpl_(new (std::nothrow)
85-
pimpl(threads, io_service, std::move(worker_threads))) {
85+
impl(threads, io_service, std::move(worker_threads))) {
8686

8787
}
8888

Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Copyright (c) Glyn Matthews 2012.
1+
// Copyright (c) Glyn Matthews 2012, 2013.
22
// Distributed under the Boost Software License, Version 1.0.
33
// (See accompanying file LICENSE_1_0.txt or copy at
44
// http://www.boost.org/LICENSE_1_0.txt)
55

6-
#ifndef __NETWORK_UTILS_THREAD_POOL_INC__
7-
#define __NETWORK_UTILS_THREAD_POOL_INC__
6+
#ifndef NETWORK_UTILS_THREAD_POOL_INC
7+
#define NETWORK_UTILS_THREAD_POOL_INC
88

99
#include <network/concurrency/thread_pool.hpp>
1010

@@ -14,4 +14,4 @@ typedef ::network::concurrency::thread_pool thread_pool;
1414
} // namespace utils
1515
} // namespace network
1616

17-
#endif // __NETWORK_UTILS_THREAD_POOL_INC__
17+
#endif // NETWORK_UTILS_THREAD_POOL_INC

0 commit comments

Comments
 (0)