donnadionne
8e268dcec8
Revert "Made grpc_core::Mutex compatible to absl::Mutex" ( #25537 )
...
* Revert "Made grpc_core::Mutex compatible to absl::Mutex"
This reverts commit 0b53341328
.
* Revert "Added thread annotation (#25486 )"
This reverts commit 9d897cb1a5
.
* Revert "Fix a race in resolve_address and resolve_address_posix tests"
This reverts commit 6d8e7d3819
.
* Restore 25398
* restore 25398
4 years ago
Esun Kim
0b53341328
Made grpc_core::Mutex compatible to absl::Mutex
4 years ago
Esun Kim
6dc1748f6c
Revert "Made grpc_core::Mutex compatible to absl::Mutex"
4 years ago
Esun Kim
6a1518bd22
Made grpc_core::Mutex compatible to absl::Mutex
4 years ago
Vijay Pai
da7f82fa9c
Properly synchronize thread creation failure case
5 years ago
Esun Kim
f40a702441
Clean up headers
6 years ago
Vijay Pai
a3689a8b6c
Properly handle race at thread creation
6 years ago
Vijay Pai
19a57f0f96
Revert "c++ check if workerthread could be spawned"
6 years ago
Vijay Pai
f586be8532
Fix formatting
6 years ago
Christian Maurer
827fd04402
moved created() into header file
6 years ago
Christian Maurer
bbb66caa64
rename isCreated, make it inline const
6 years ago
Christian Maurer
ed9ec64cea
Check if workerthread could be spawned
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
d9781df474
Address reviewer comments
7 years ago
Vijay Pai
14ad82a76d
Create a new method handler for resource exhaustion and tie into thread mgr
7 years ago
Sree Kuchibhotla
bdd13cb0ae
Revert "Revert "Restrict the number of threads in C++ sync server""
7 years ago
Nicolas Noble
bea98c3c1b
Revert "Restrict the number of threads in C++ sync server"
7 years ago
Sree Kuchibhotla
6eac5e41b1
std::max is not available on some windows platforms
7 years ago
Sree Kuchibhotla
c2a22a1ab8
Address core review comments
7 years ago
Sree Kuchibhotla
b95772eeb9
Add Tests in Core and C++ and fix a few related bugs in thread_manager.cc
7 years ago
Sree Kuchibhotla
ec1c112cc1
Each ThreadManager is a resource user
7 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
Jan Tattermusch
c9ec2c0888
Revert "Stop using std::thread in C++ library since it can trigger exceptions"
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
8 years ago
David Garcia Quintas
aef267b71e
Put thread creation and join under lock
8 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
9 years ago
Sree Kuchibhotla
85399f0824
clang formatting fixes
9 years ago
Sree Kuchibhotla
385c9b2f05
Address code review comments
9 years ago
Sree Kuchibhotla
d39f40da9e
Fix include files
9 years ago
Sree Kuchibhotla
8f7739bcd6
Rename GrpcRpcManager -> ThreadManager
9 years ago
Sree Kuchibhotla
acd64db4d9
Minor changes
9 years ago
Sree Kuchibhotla
3b2bc2deb1
tsan failures
9 years ago
Sree Kuchibhotla
862acb9f3a
fix shutdown crash
9 years ago
Sree Kuchibhotla
4306eeee39
Minor changes
9 years ago
Sree Kuchibhotla
aabada97a1
One RPCMgr instance per CQ
9 years ago
Sree Kuchibhotla
f95f125506
Minor changes
9 years ago