Craig Tiller
6af45a35ba
Tooling to remove redundant grpc_core:: namespace references ( #28030 )
...
* Tooling to remove redundant grpc_core:: namespaces
These references tend to show up in our C++ code after C modules get
converted. Many get caught in review, many get missed.
* use it
* clang-format
4 years ago
Craig Tiller
b669a3c521
Revert "Revert "a useful change ( #27381 )" ( #27411 )" ( #27412 )
...
This reverts commit 5db17f7350
.
4 years ago
Craig Tiller
5db17f7350
Revert "a useful change ( #27381 )" ( #27411 )
...
This reverts commit 11eb70bbed
.
4 years ago
Craig Tiller
11eb70bbed
a useful change ( #27381 )
...
* a useful change
* Automated change: Fix sanity tests
* fix
* fix
* QsortCompare it is!
* Automated change: Fix sanity tests
* add missing header
* clang-tidy fixes, tweak clamp to only use <
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
4 years ago
Jan Tattermusch
451127740d
Revert "Replace in-house rand with absl::Random for backoff ( #26463 )" ( #26476 )
...
This reverts commit b5191d0930
.
4 years ago
Esun Kim
b5191d0930
Replace in-house rand with absl::Random for backoff ( #26463 )
...
* Replace in-house rand with absl::Random for backoff
* Run sanity
* Added bscrypt dependency
4 years ago
Alexander Polcyn
db3e898a98
Add a sanity check for inclusion of port_platform.h
7 years ago
Noah Eisen
4d20a66685
Run clang fmt
7 years ago
Noah Eisen
be82e64b3d
Autofix c casts to c++ casts
7 years ago
Vijay Pai
d4d0a30c6f
Privatize useful.h and avl.h
7 years ago
Mark D. Roth
44fe6e282c
Combine BackOff Begin() and Step() methods.
7 years ago
Muxi Yan
38fcd0c6c3
clang-format
8 years ago
Yash Tibrewal
8cf1470a51
Revert "Revert "All instances of exec_ctx being passed around in src/core removed""
8 years ago
Yash Tibrewal
ad4d2dde00
Revert "All instances of exec_ctx being passed around in src/core removed"
8 years ago
David Garcia Quintas
bdea93374d
Undo change to spec and corresponding code
8 years ago
David Garcia Quintas
0f91e513d9
Cleaned up API. Backoff now returns a single value: the time of the next retry
8 years ago
David Garcia Quintas
d3f6eae669
Restored our own RNG impl
8 years ago
David Garcia Quintas
dde6afc0c0
C++-ize backoff
8 years ago
Yash Tibrewal
6c26b16fe0
Move ExecCtx to grpc_core namespace. Make exec_ctx a private static in ExecCtx and some minor changes
8 years ago
Yash Tibrewal
75122c2357
Address some PR comments
8 years ago
Craig Tiller
baa14a975e
Update clang-format to 5.0
8 years ago
David Garcia Quintas
eca25f3746
Improvements to C Core's backoff code and API
8 years ago
Yash Tibrewal
0ee7574732
Removing instances of exec_ctx being passed around in functions in
...
src/core. exec_ctx is now a thread_local pointer of type ExecCtx instead of
grpc_exec_ctx which is initialized whenever ExecCtx is instantiated. ExecCtx
also keeps track of the previous exec_ctx so that nesting of exec_ctx is
allowed. This means that there is only one exec_ctx being used at any
time. Also, grpc_exec_ctx_finish is called in the destructor of the
object, and the previous exec_ctx is restored to avoid breaking current
functionality. The code still explicitly calls grpc_exec_ctx_finish
because removing all such instances causes the code to break.
8 years ago