Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
91a81f64
Commit
91a81f64
authored
5 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
thread pool: make public
parent
17b772e6
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+2
-2
2 additions, 2 deletions
CMakeLists.txt
include/opendht/thread_pool.h
+3
-1
3 additions, 1 deletion
include/opendht/thread_pool.h
src/Makefile.am
+5
-3
5 additions, 3 deletions
src/Makefile.am
with
10 additions
and
6 deletions
CMakeLists.txt
+
2
−
2
View file @
91a81f64
...
...
@@ -153,6 +153,7 @@ list (APPEND opendht_SOURCES
src/peer_discovery.cpp
src/network_utils.h
src/network_utils.cpp
src/thread_pool.cpp
)
list
(
APPEND opendht_HEADERS
...
...
@@ -177,6 +178,7 @@ list (APPEND opendht_HEADERS
include/opendht/log.h
include/opendht/log_enable.h
include/opendht/peer_discovery.h
include/opendht/thread_pool.h
include/opendht.h
)
...
...
@@ -199,8 +201,6 @@ if (OPENDHT_PROXY_SERVER)
include/opendht/dht_proxy_server.h
)
list
(
APPEND opendht_SOURCES
src/thread_pool.h
src/thread_pool.cpp
src/dht_proxy_server.cpp
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
src
/thread_pool.h
→
include/opendht
/thread_pool.h
+
3
−
1
View file @
91a81f64
...
...
@@ -19,6 +19,8 @@
#pragma once
#include
"def.h"
#include
<condition_variable>
#include
<vector>
#include
<queue>
...
...
@@ -27,7 +29,7 @@
namespace
dht
{
class
ThreadPool
{
class
OPENDHT_PUBLIC
ThreadPool
{
public:
static
ThreadPool
&
computation
();
static
ThreadPool
&
io
();
...
...
This diff is collapsed.
Click to expand it.
src/Makefile.am
+
5
−
3
View file @
91a81f64
...
...
@@ -29,7 +29,8 @@ libopendht_la_SOURCES = \
log.cpp
\
peer_discovery.cpp
\
network_utils.h
\
network_utils.cpp
network_utils.cpp
\
thread_pool.cpp
if
WIN32
libopendht_la_SOURCES
+=
rng.cpp
...
...
@@ -57,10 +58,11 @@ nobase_include_HEADERS = \
../include/opendht/log.h
\
../include/opendht/log_enable.h
\
../include/opendht/peer_discovery.h
\
../include/opendht/rng.h
../include/opendht/rng.h
\
../include/opendht/thread_pool.h
if
ENABLE_PROXY_SERVER
libopendht_la_SOURCES
+=
dht_proxy_server.cpp
thread_pool.h thread_pool.cpp
libopendht_la_SOURCES
+=
dht_proxy_server.cpp
nobase_include_HEADERS
+=
../include/opendht/dht_proxy_server.h
endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment