aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/server_builder.h
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2018-01-12 10:16:22 +0100
committerGravatar GitHub <noreply@github.com>2018-01-12 10:16:22 +0100
commitc9ec2c0888271491eaf425721a72736392f85945 (patch)
tree8ee3fe7e6fe56bed7bbfa7c8537add5f24afe12a /include/grpc++/server_builder.h
parentb0b4555f4ca720e626f42855f2257bf598e1bf74 (diff)
Revert "Stop using std::thread in C++ library since it can trigger exceptions"
Diffstat (limited to 'include/grpc++/server_builder.h')
-rw-r--r--include/grpc++/server_builder.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h
index 25bbacbbc7..e2bae4b41f 100644
--- a/include/grpc++/server_builder.h
+++ b/include/grpc++/server_builder.h
@@ -20,7 +20,6 @@
#define GRPCXX_SERVER_BUILDER_H
#include <climits>
-#include <functional>
#include <map>
#include <memory>
#include <vector>
@@ -31,7 +30,6 @@
#include <grpc++/support/config.h>
#include <grpc/compression.h>
#include <grpc/support/cpu.h>
-#include <grpc/support/thd.h>
#include <grpc/support/useful.h>
#include <grpc/support/workaround_list.h>
@@ -49,7 +47,6 @@ class Service;
namespace testing {
class ServerBuilderPluginTest;
-class ServerBuilderThreadCreatorOverrideTest;
} // namespace testing
/// A builder class for the creation and startup of \a grpc::Server instances.
@@ -216,17 +213,6 @@ class ServerBuilder {
private:
friend class ::grpc::testing::ServerBuilderPluginTest;
- friend class ::grpc::testing::ServerBuilderThreadCreatorOverrideTest;
-
- ServerBuilder& SetThreadFunctions(
- std::function<int(gpr_thd_id*, const char*, void (*)(void*), void*,
- const gpr_thd_options*)>
- thread_creator,
- std::function<void(gpr_thd_id)> thread_joiner) {
- thread_creator_ = thread_creator;
- thread_joiner_ = thread_joiner;
- return *this;
- }
struct Port {
grpc::string addr;
@@ -286,11 +272,6 @@ class ServerBuilder {
grpc_compression_algorithm algorithm;
} maybe_default_compression_algorithm_;
uint32_t enabled_compression_algorithms_bitset_;
-
- std::function<int(gpr_thd_id*, const char*, void (*)(void*), void*,
- const gpr_thd_options*)>
- thread_creator_;
- std::function<void(gpr_thd_id)> thread_joiner_;
};
} // namespace grpc