Skip to content
Snippets Groups Projects
Commit 91a81f64 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

thread pool: make public

parent 17b772e6
No related branches found
No related tags found
No related merge requests found
......@@ -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 ()
......
......@@ -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();
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment