Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd945654

Browse files
committed
Minor changes to the thread_pool class and headers.
1 parent7a3e856 commitd945654

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

‎concurrency/src/network/concurrency/thread_pool.hpp‎

Lines changed: 3 additions & 3 deletions
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-
structpimpl;
43-
pimpl* pimpl_;
42+
structimpl;
43+
impl* pimpl_;
4444

4545
};
4646

‎concurrency/src/network/concurrency/thread_pool.ipp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2011 Dean Michael Berris <dberris@google.com>.
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
namespacenetwork {
1717
namespaceconcurrency {
1818

19-
structthread_pool::pimpl {
20-
pimpl(std::size_t threads =1,
19+
structthread_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

Lines changed: 4 additions & 4 deletions
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+
#ifndefNETWORK_UTILS_THREAD_POOL_INC
7+
#defineNETWORK_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)

[8]ページ先頭

©2009-2025 Movatter.jp