Craig Tiller
672f31c6ac
Channel args preconditioning ( #28132 )
...
* Channel args preconditioning
* docs
* fixes
* Automated change: Fix sanity tests
* fix
* fix this again after merge error
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2021-11-22 15:24:39 -08:00
Craig Tiller
a629c9a03e
Reland resource quota work ( #28017 )
...
* Check if memory owner available prior to polling it
The transport may drop the memory owner during its destruction sequence
* tcp_fix
* Revert "Revert "New resource quota integration (#27643 )" (#28014 )"
This reverts commit 0ea2c37263 .
* clang-format
* fix-path
* fix
2021-11-15 08:23:51 -08:00
Craig Tiller
0ea2c37263
Revert "New resource quota integration ( #27643 )" ( #28014 )
...
This reverts commit 39f0877d25 .
2021-11-11 14:26:19 -08:00
Craig Tiller
39f0877d25
New resource quota integration ( #27643 )
...
* new resource quota integration
* Automated change: Fix sanity tests
* fix
* fix
* fixes
* fixes
* fixes
* Automated change: Fix sanity tests
* fixes
* fixes
* Automated change: Fix sanity tests
* fixes
* fix
* fixes
* windows-fix
* fixes
* fixes
* fix
* fix-asan
* banned
* banned
* fixes
* clang-tidy-fix
* Automated change: Fix sanity tests
* fix-cronet
* review feedback
* review feedback
* Automated change: Fix sanity tests
* fixes
* bug fix
* fixes
* compile fix
* exclude megabyte size payloads from 1byte tests
* windows fix
* start moving ios
* keep moving windows
* Get windows compilation working.
* Automated change: Fix sanity tests
* better
* fixes
* remove slice buffer from memory_allocator.h
* Revert "remove slice buffer from memory_allocator.h"
This reverts commit 234a63b6e3 .
* ugh
* #fixtests
* pthread tls fixes
* Automated change: Fix sanity tests
* fixfixfix
* xxx
* add reset
* review feedback
* fix
* fix
* fixes
* fix
* mac progress
* cpp-impl-of
* rename ptr
* Automated change: Fix sanity tests
* memory-owner-is-a-memory-allocator
* fixes
* fix
* fix from prod
* fix
* Fix issue leading to bad pointers being returned on Windows.
* Automated change: Fix sanity tests
* fix multislice bug
* argh
* hyrums law fixes
* hyrums law fixes
* clang-format
* hyrums law fixes
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2021-11-10 22:53:04 -08:00
Craig Tiller
ea389c00c2
Adjust include order per style guide ( #27175 )
...
Introduce clang-format configuration to sort includes closer to our rules.
2021-09-08 12:14:44 -07:00
AJ Heller
f84f3a7522
Fix potential nullptr names in resource_user/slice_allocator creation ( #27154 )
...
absl::string_view permits construction with nullptr, which yields UB.
This PR fixes all call sites that could have created these objects with
nullptr names.
2021-08-26 19:30:07 -07:00
donnadionne
1835f00ef1
Revert "Revert "Made grpc_core::Mutex compatible to absl::Mutex" ( #25537 )" ( #25549 )
...
This reverts commit 8e268dcec8 .
2021-02-24 16:49:34 -08:00
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
2021-02-24 10:32:49 -08:00
Esun Kim
0b53341328
Made grpc_core::Mutex compatible to absl::Mutex
2021-02-10 09:56:55 -08:00
Esun Kim
6dc1748f6c
Revert "Made grpc_core::Mutex compatible to absl::Mutex"
2021-02-10 07:53:02 -08:00
Esun Kim
6a1518bd22
Made grpc_core::Mutex compatible to absl::Mutex
2021-02-08 16:15:53 -08:00
Esun Kim
53ab235fb8
Fix google-explicit-constructor
2020-12-03 15:03:39 -08:00
Vijay Pai
da7f82fa9c
Properly synchronize thread creation failure case
2020-09-23 10:12:16 -07:00
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