Esun Kim
f40a702441
Clean up headers
2019-11-15 09:38:31 -08:00
Vijay Pai
a3689a8b6c
Properly handle race at thread creation
2019-10-25 12:35:20 -07:00
Vijay Pai
19a57f0f96
Revert "c++ check if workerthread could be spawned"
2019-10-25 11:18:03 -07:00
Vijay Pai
6e4d2e86dc
Merge pull request #20376 from chrisse74/master
...
c++ check if workerthread could be spawned
2019-10-16 23:38:38 -07:00
Vijay Pai
02c3bd6c2c
One more formatting change
2019-10-16 01:27:21 -07:00
Vijay Pai
f586be8532
Fix formatting
2019-10-16 01:14:05 -07:00
Christian Maurer
827fd04402
moved created() into header file
2019-10-16 08:30:37 +02:00
Christian Maurer
bbb66caa64
rename isCreated, make it inline const
2019-10-16 08:01:53 +02:00
tanjunchen
64cdea5a07
fix some spelling mistakes in document
2019-10-04 09:07:35 +08:00
Christian Maurer
ed9ec64cea
Check if workerthread could be spawned
2019-09-26 09:21:56 +02:00
weiyongji
57cc401597
typo fix
2019-05-25 11:20:08 +08:00
Soheil Hassas Yeganeh
2b9448a71c
Revert "Revert "Introduce C++ wrappers for gpr_mu and gpr_cv.""
...
This reverts commit d09c9f8e20 .
2019-04-17 14:35:29 -04:00
Alexander Polcyn
d09c9f8e20
Revert "Introduce C++ wrappers for gpr_mu and gpr_cv."
...
This reverts commit a26c09dd25 .
2019-04-11 16:52:54 -07:00
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.
2019-04-08 18:27:07 -04:00
Vijay Pai
9c32dab63d
Expand comment based on reviewer feedback
2018-08-15 14:46:51 -07:00
Vijay Pai
d9781df474
Address reviewer comments
2018-08-15 10:13:22 -07:00
Vijay Pai
14ad82a76d
Create a new method handler for resource exhaustion and tie into thread mgr
2018-08-14 16:23:21 -07:00
Sree Kuchibhotla
bdd13cb0ae
Revert "Revert "Restrict the number of threads in C++ sync server""
2018-08-01 11:22:40 -07:00
Nicolas Noble
bea98c3c1b
Revert "Restrict the number of threads in C++ sync server"
2018-07-31 21:12:45 -07:00
Sree Kuchibhotla
6eac5e41b1
std::max is not available on some windows platforms
2018-07-27 17:23:02 -07:00
Sree Kuchibhotla
c2a22a1ab8
Address core review comments
2018-07-27 16:19:03 -07:00
Sree Kuchibhotla
b95772eeb9
Add Tests in Core and C++ and fix a few related bugs in thread_manager.cc
2018-07-24 16:35:25 -07:00
Sree Kuchibhotla
ec1c112cc1
Each ThreadManager is a resource user
2018-07-20 15:10:16 -07:00
Vijay Pai
809cf96c56
Name needs to only be alphanumeric+underscore+dash
2018-03-05 23:04:57 -08:00
Vijay Pai
7fed69b7ad
Use static_cast rather than reinterpret_cast whenever possible
2018-03-05 16:35:10 -08:00
Vijay Pai
162ae4f50c
Remove std::thread, keep everything else unchanged ( #13 )
2018-03-02 16:16:04 -08:00
Muxi Yan
0e00c43082
Move headers from grpc++ to grpcpp
2018-02-15 14:49:34 -08:00
Jan Tattermusch
c9ec2c0888
Revert "Stop using std::thread in C++ library since it can trigger exceptions"
2018-01-12 10:16:22 +01:00
Vijay Pai
92e267ec50
Add needed header
2018-01-10 18:45:08 +00:00
Vijay Pai
5dd32268be
Switch C++ sync server to use gpr_thd rather than std::thread and provide resource exhaustion mechanism
2018-01-08 10:02:38 -08:00
Sree Kuchibhotla
419b617a95
Fix thread avalances in thread manager
2017-08-09 20:40:24 -07:00
David Garcia Quintas
aef267b71e
Put thread creation and join under lock
2017-07-14 19:02:53 -07:00
Jan Tattermusch
7897ae9308
auto-fix most of licenses
2017-06-08 11:22:41 +02:00
Craig Tiller
f659ee5ff1
Move comment
2017-04-18 17:07:16 -07:00
Craig Tiller
35f27cd457
More cleanup
2017-04-18 13:14:45 -07:00
Craig Tiller
4818150728
Better commentary
2017-04-18 13:09:54 -07:00
Craig Tiller
a3e87894f2
Fix, restore draining
2017-04-18 13:08:08 -07:00
Craig Tiller
991c101de8
Initial thread manager fixes
2017-04-18 19:43:14 +00:00
Vijay Pai
320ed13d3e
Deprecate grpc::thread and sync in favor of std::thread,mutex,etc
2016-11-01 17:16:55 -07:00
Sree Kuchibhotla
33d5494f8c
generate_projects.sh and also add config.h header so that gcc4.4 can recognize nullptr
2016-10-25 10:03:52 -07:00
Sree Kuchibhotla
85399f0824
clang formatting fixes
2016-10-24 09:41:20 -07:00
Sree Kuchibhotla
385c9b2f05
Address code review comments
2016-10-18 16:26:38 -07:00
Sree Kuchibhotla
d39f40da9e
Fix include files
2016-10-13 15:21:14 -07:00
Sree Kuchibhotla
8f7739bcd6
Rename GrpcRpcManager -> ThreadManager
2016-10-13 15:12:55 -07:00