AJ Heller
85189b24bb
Reintroduce: Avoid fully qualifying namespaces (and add check) ( #28917 )
...
Based on a handful of https://abseil.io/tips , it's generally advised to
only fully-qualify namespaces when in a `using` statement, or when it's
otherwise required for compilation. In all other cases, the general
recommendation is to not fully-qualify.
This change fixes most `grpc.*` namespace uses. There are potential
challenges in trying to make blanket changes to non-gRPC namespace uses,
such as `::testing`, since there is also a `grpc::testing` namespace.
3 years ago
AJ Heller
e72a5fe5dd
Revert "Avoid fully qualifying namespaces (and add check) ( #28901 )" ( #28916 )
...
This reverts commit fc7314c701
.
3 years ago
AJ Heller
fc7314c701
Avoid fully qualifying namespaces (and add check) ( #28901 )
...
Based on a handful of https://abseil.io/tips , it's generally advised to
only fully-qualify namespaces when in a `using` statement, or when it's
otherwise required for compilation. In all other cases, the general
recommendation is to not fully-qualify.
This change fixes most `grpc.*` namespace uses. There are potential
challenges in trying to make blanket changes to non-gRPC namespace uses,
such as `::testing`, since there is also a `grpc::testing` namespace.
3 years ago
Craig Tiller
ea389c00c2
Adjust include order per style guide ( #27175 )
...
Introduce clang-format configuration to sort includes closer to our rules.
3 years ago
Vijay Pai
ea4b68e7a1
Drop experimental tags from core callback API ( #26535 )
3 years ago
Yash Tibrewal
f4e55b85bc
Replace disrespectful term
4 years ago
Esun Kim
75e3e660fd
Fix google-readability-todo
4 years ago
Vijay Pai
94a85b051d
Expand comment to address reviewer feedback
4 years ago
Vijay Pai
968e1b40a5
Properly follow callback API guarantees rather than existing behavior
4 years ago
Vijay Pai
9c5a39c6db
Revert "Merge pull request #23361 from vjpai/em_agnostic_core_callback_cq"
...
This reverts commit a46cb5e86a
, reversing
changes made to b5d42e75fb
.
4 years ago
Vijay Pai
7ee2bc6db5
EM-agnostic callback completion queue
4 years ago
Esun Kim
c736cf073c
Added call to grpc::testing::TestEnvironment in more tests
4 years ago
Vijay Pai
be6979202b
Revamp server-side C++ callback API, message allocator, and mocking
5 years ago
Vijay Pai
6ca827a008
Remove unused parameter warning (18 of 20)
5 years ago
Vijay Pai
1077b3435c
Use range-based for on state rather than state.KeepRunning when possible
5 years ago
Karthik Ravi Shankar
196b0aa3a3
Revert "Revert "Start supporting a callback-based RPC under lock""
6 years ago
Karthik Ravi Shankar
b790c24e5c
Revert "Start supporting a callback-based RPC under lock"
6 years ago
Karthik Ravi Shankar
b18faa6c95
Fix tsan error
6 years ago
Karthik Ravi Shankar
e1f62278e3
Fix clang error
6 years ago
Karthik Ravi Shankar
4f7f561564
Add synchronization to bm test
...
- since we made the callback run on another thread, add synchronization
in bm tests as well
6 years ago
Na-Na Pang
87d75d2a88
Add explicit and fix error
6 years ago
Na-Na Pang
a2daa4ff08
Clean format'
6 years ago
Na-Na Pang
1ea651aee3
Add assertion
6 years ago
Na-Na Pang
070902b871
Merge bm_callback_cq to bm_cq
6 years ago
Esun Kim
e18ed03c04
Made gRPC inialized after entering main function in microbenchmarks.
6 years ago
ncteisen
40ec89ff67
Support microbenchmarks internally
7 years ago
Vijay Pai
c90a85649b
Change grpc++ references in names to grpcpp
7 years ago
Yash Tibrewal
8cf1470a51
Revert "Revert "All instances of exec_ctx being passed around in src/core removed""
7 years ago
Yash Tibrewal
ad4d2dde00
Revert "All instances of exec_ctx being passed around in src/core removed"
7 years ago
Yash Tibrewal
c354269ba7
Remove _ prefixed variable names
7 years ago
Yash Tibrewal
6c26b16fe0
Move ExecCtx to grpc_core namespace. Make exec_ctx a private static in ExecCtx and some minor changes
7 years ago
Yash Tibrewal
75122c2357
Address some PR comments
7 years ago
Craig Tiller
be98d24841
clang-format after nullptr changes
7 years ago
Craig Tiller
4ac2b8e585
Enable clang-tidy as a sanity check, fix up all known failures
7 years ago
Yash Tibrewal
3150744c71
Removing more exec_ctx instances
7 years ago
Vijay Pai
06e174a088
Separate public and internal C++ interfaces
7 years ago
Yash Tibrewal
39aed1ae8b
Remove unnecessary extern Cs
7 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.
7 years ago
yang-g
7d6b914f98
Change return type to bool
7 years ago
yang-g
0eaf7debd2
Allow adding events to cq after shutdown is called.
7 years ago
Vijay Pai
6abd20020b
Revert "Separate internal-only and public parts of C++ API"
7 years ago
Vijay Pai
c0baec60a1
Internalize structs and methods meant for being exposed through codegen
...
or that interface with core and are only for internal use
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
Sree Kuchibhotla
08bbdb8801
Fix cq creation code after merge
8 years ago
Sree Kuchibhotla
8dbd9677ef
Add a benchmark
8 years ago
Sree Kuchibhotla
f2c32150ef
Update C++ code
8 years ago
Craig Tiller
c945c12b47
Revert "Revert "Split bm_fullstack into pieces, reuse infrastructure across other microbenchmarks""
...
This reverts commit 0cb7fef406
.
8 years ago
Jan Tattermusch
0cb7fef406
Revert "Split bm_fullstack into pieces, reuse infrastructure across other microbenchmarks"
8 years ago
Sree Kuchibhotla
1dbd981cf8
Prefix grpc_cq_polling_type enums with GRPC_CQ_
8 years ago