weiyongji
57cc401597
typo fix
6 years ago
Soheil Hassas Yeganeh
2b9448a71c
Revert "Revert "Introduce C++ wrappers for gpr_mu and gpr_cv.""
...
This reverts commit d09c9f8e20
.
6 years ago
Alexander Polcyn
d09c9f8e20
Revert "Introduce C++ wrappers for gpr_mu and gpr_cv."
...
This reverts commit a26c09dd25
.
6 years ago
Soheil Hassas Yeganeh
e85dd2e644
Fix build errors
6 years ago
Karthik Ravi Shankar
f03b309787
Revert "Merge pull request #18458 from grpc/grpc_namespace_server"
...
This reverts commit dc1089a6d1
, reversing
changes made to 31843787cc
.
This change also includes - Revert "Merge pull request #17932 from soheilhy/gprpp-mutex"
This reverts commit df4b6a763d
, reversing
changes made to dc1089a6d1
.
6 years ago
Soheil Hassas Yeganeh
a26c09dd25
Introduce C++ wrappers for gpr_mu and gpr_cv.
...
Introduce RAII wrappers in the grpc::internal and grpc_core
namespaces, and use them in place of std::mutex and
std::condition_variable.
Note that, since std::mutex is also used by the public
C++ headers we cannot introduce these wrappers in grpc_core.
Also, note that in grpcpp we cannot use gRPC core and vice versa.
So we had to duplicate the code, once using core_codegen_interface
and once using direct calls.
6 years ago
Vijay Pai
9c32dab63d
Expand comment based on reviewer feedback
6 years ago
Vijay Pai
d9781df474
Address reviewer comments
6 years ago
Vijay Pai
14ad82a76d
Create a new method handler for resource exhaustion and tie into thread mgr
6 years ago
Sree Kuchibhotla
bdd13cb0ae
Revert "Revert "Restrict the number of threads in C++ sync server""
6 years ago
Nicolas Noble
bea98c3c1b
Revert "Restrict the number of threads in C++ sync server"
6 years ago
Sree Kuchibhotla
6eac5e41b1
std::max is not available on some windows platforms
6 years ago
Sree Kuchibhotla
c2a22a1ab8
Address core review comments
6 years ago
Sree Kuchibhotla
b95772eeb9
Add Tests in Core and C++ and fix a few related bugs in thread_manager.cc
6 years ago
Sree Kuchibhotla
ec1c112cc1
Each ThreadManager is a resource user
6 years ago
Vijay Pai
809cf96c56
Name needs to only be alphanumeric+underscore+dash
7 years ago
Vijay Pai
7fed69b7ad
Use static_cast rather than reinterpret_cast whenever possible
7 years ago
Vijay Pai
162ae4f50c
Remove std::thread, keep everything else unchanged ( #13 )
7 years ago
Muxi Yan
0e00c43082
Move headers from grpc++ to grpcpp
7 years ago
Jan Tattermusch
c9ec2c0888
Revert "Stop using std::thread in C++ library since it can trigger exceptions"
7 years ago
Vijay Pai
92e267ec50
Add needed header
7 years ago
Vijay Pai
5dd32268be
Switch C++ sync server to use gpr_thd rather than std::thread and provide resource exhaustion mechanism
7 years ago
Sree Kuchibhotla
419b617a95
Fix thread avalances in thread manager
7 years ago
David Garcia Quintas
aef267b71e
Put thread creation and join under lock
7 years ago
Jan Tattermusch
7897ae9308
auto-fix most of licenses
8 years ago
Alexander Polcyn
f5521c33f9
Revert "Merge branch 'master' into v1.3.x"
...
This reverts commit 79759fea1a
, reversing
changes made to dc36f4df6a
.
8 years ago
Craig Tiller
f659ee5ff1
Move comment
8 years ago
Craig Tiller
35f27cd457
More cleanup
8 years ago
Craig Tiller
4818150728
Better commentary
8 years ago
Craig Tiller
a3e87894f2
Fix, restore draining
8 years ago
Craig Tiller
991c101de8
Initial thread manager fixes
8 years ago
Vijay Pai
320ed13d3e
Deprecate grpc::thread and sync in favor of std::thread,mutex,etc
8 years ago
Sree Kuchibhotla
33d5494f8c
generate_projects.sh and also add config.h header so that gcc4.4 can recognize nullptr
8 years ago
Sree Kuchibhotla
85399f0824
clang formatting fixes
8 years ago
Sree Kuchibhotla
385c9b2f05
Address code review comments
8 years ago
Sree Kuchibhotla
d39f40da9e
Fix include files
8 years ago
Sree Kuchibhotla
8f7739bcd6
Rename GrpcRpcManager -> ThreadManager
8 years ago