Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
d35730d1
Commit
d35730d1
authored
7 years ago
by
Vijay Pai
Browse files
Options
Downloads
Patches
Plain Diff
Fix use of terminal underscores in field names.
parent
fc539eb1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/grpc++/impl/codegen/async_unary_call.h
+26
-26
26 additions, 26 deletions
include/grpc++/impl/codegen/async_unary_call.h
with
26 additions
and
26 deletions
include/grpc++/impl/codegen/async_unary_call.h
+
26
−
26
View file @
d35730d1
...
@@ -100,13 +100,13 @@ class ClientAsyncResponseReader final
...
@@ -100,13 +100,13 @@ class ClientAsyncResponseReader final
:
context_
(
context
),
:
context_
(
context
),
call_
(
channel
->
CreateCall
(
method
,
context
,
cq
)),
call_
(
channel
->
CreateCall
(
method
,
context
,
cq
)),
collection_
(
std
::
make_shared
<
Ops
>
())
{
collection_
(
std
::
make_shared
<
Ops
>
())
{
collection_
->
init_buf
_
.
SetCollection
(
collection_
);
collection_
->
init_buf
.
SetCollection
(
collection_
);
collection_
->
init_buf
_
.
SendInitialMetadata
(
collection_
->
init_buf
.
SendInitialMetadata
(
context
->
send_initial_metadata_
,
context
->
initial_metadata_flags
());
context
->
send_initial_metadata_
,
context
->
initial_metadata_flags
());
// TODO(ctiller): don't assert
// TODO(ctiller): don't assert
GPR_CODEGEN_ASSERT
(
collection_
->
init_buf
_
.
SendMessage
(
request
).
ok
());
GPR_CODEGEN_ASSERT
(
collection_
->
init_buf
.
SendMessage
(
request
).
ok
());
collection_
->
init_buf
_
.
ClientSendClose
();
collection_
->
init_buf
.
ClientSendClose
();
call_
.
PerformOps
(
&
collection_
->
init_buf
_
);
call_
.
PerformOps
(
&
collection_
->
init_buf
);
}
}
// always allocated against a call arena, no memory free required
// always allocated against a call arena, no memory free required
...
@@ -123,18 +123,18 @@ class ClientAsyncResponseReader final
...
@@ -123,18 +123,18 @@ class ClientAsyncResponseReader final
void
ReadInitialMetadata
(
void
*
tag
)
{
void
ReadInitialMetadata
(
void
*
tag
)
{
GPR_CODEGEN_ASSERT
(
!
context_
->
initial_metadata_received_
);
GPR_CODEGEN_ASSERT
(
!
context_
->
initial_metadata_received_
);
Ops
&
o
=
ops
;
Ops
&
o
=
ops
_
;
// TODO(vjpai): Remove the collection_ specialization as soon
// TODO(vjpai): Remove the collection_ specialization as soon
// as the public constructor is deleted
// as the public constructor is deleted
if
(
collection_
)
{
if
(
collection_
)
{
o
=
*
collection_
;
o
=
*
collection_
;
collection_
->
meta_buf
_
.
SetCollection
(
collection_
);
collection_
->
meta_buf
.
SetCollection
(
collection_
);
}
}
o
.
meta_buf
_
.
set_output_tag
(
tag
);
o
.
meta_buf
.
set_output_tag
(
tag
);
o
.
meta_buf
_
.
RecvInitialMetadata
(
context_
);
o
.
meta_buf
.
RecvInitialMetadata
(
context_
);
call_
.
PerformOps
(
&
o
.
meta_buf
_
);
call_
.
PerformOps
(
&
o
.
meta_buf
);
}
}
/// See \a ClientAysncResponseReaderInterface::Finish for semantics.
/// See \a ClientAysncResponseReaderInterface::Finish for semantics.
...
@@ -143,23 +143,23 @@ class ClientAsyncResponseReader final
...
@@ -143,23 +143,23 @@ class ClientAsyncResponseReader final
/// - the \a ClientContext associated with this call is updated with
/// - the \a ClientContext associated with this call is updated with
/// possible initial and trailing metadata sent from the server.
/// possible initial and trailing metadata sent from the server.
void
Finish
(
R
*
msg
,
Status
*
status
,
void
*
tag
)
{
void
Finish
(
R
*
msg
,
Status
*
status
,
void
*
tag
)
{
Ops
&
o
=
ops
;
Ops
&
o
=
ops
_
;
// TODO(vjpai): Remove the collection_ specialization as soon
// TODO(vjpai): Remove the collection_ specialization as soon
// as the public constructor is deleted
// as the public constructor is deleted
if
(
collection_
)
{
if
(
collection_
)
{
o
=
*
collection_
;
o
=
*
collection_
;
collection_
->
finish_buf
_
.
SetCollection
(
collection_
);
collection_
->
finish_buf
.
SetCollection
(
collection_
);
}
}
o
.
finish_buf
_
.
set_output_tag
(
tag
);
o
.
finish_buf
.
set_output_tag
(
tag
);
if
(
!
context_
->
initial_metadata_received_
)
{
if
(
!
context_
->
initial_metadata_received_
)
{
o
.
finish_buf
_
.
RecvInitialMetadata
(
context_
);
o
.
finish_buf
.
RecvInitialMetadata
(
context_
);
}
}
o
.
finish_buf
_
.
RecvMessage
(
msg
);
o
.
finish_buf
.
RecvMessage
(
msg
);
o
.
finish_buf
_
.
AllowNoMessage
();
o
.
finish_buf
.
AllowNoMessage
();
o
.
finish_buf
_
.
ClientRecvStatus
(
context_
,
status
);
o
.
finish_buf
.
ClientRecvStatus
(
context_
,
status
);
call_
.
PerformOps
(
&
o
.
finish_buf
_
);
call_
.
PerformOps
(
&
o
.
finish_buf
);
}
}
private
:
private
:
...
@@ -169,12 +169,12 @@ class ClientAsyncResponseReader final
...
@@ -169,12 +169,12 @@ class ClientAsyncResponseReader final
template
<
class
W
>
template
<
class
W
>
ClientAsyncResponseReader
(
Call
call
,
ClientContext
*
context
,
const
W
&
request
)
ClientAsyncResponseReader
(
Call
call
,
ClientContext
*
context
,
const
W
&
request
)
:
context_
(
context
),
call_
(
call
)
{
:
context_
(
context
),
call_
(
call
)
{
ops
.
init_buf
_
.
SendInitialMetadata
(
context
->
send_initial_metadata_
,
ops
_
.
init_buf
.
SendInitialMetadata
(
context
->
send_initial_metadata_
,
context
->
initial_metadata_flags
());
context
->
initial_metadata_flags
());
// TODO(ctiller): don't assert
// TODO(ctiller): don't assert
GPR_CODEGEN_ASSERT
(
ops
.
init_buf
_
.
SendMessage
(
request
).
ok
());
GPR_CODEGEN_ASSERT
(
ops
_
.
init_buf
.
SendMessage
(
request
).
ok
());
ops
.
init_buf
_
.
ClientSendClose
();
ops
_
.
init_buf
.
ClientSendClose
();
call_
.
PerformOps
(
&
ops
.
init_buf
_
);
call_
.
PerformOps
(
&
ops
_
.
init_buf
);
}
}
// disable operator new
// disable operator new
...
@@ -186,12 +186,12 @@ class ClientAsyncResponseReader final
...
@@ -186,12 +186,12 @@ class ClientAsyncResponseReader final
struct
Ops
:
public
CallOpSetCollectionInterface
{
struct
Ops
:
public
CallOpSetCollectionInterface
{
SneakyCallOpSet
<
CallOpSendInitialMetadata
,
CallOpSendMessage
,
SneakyCallOpSet
<
CallOpSendInitialMetadata
,
CallOpSendMessage
,
CallOpClientSendClose
>
CallOpClientSendClose
>
init_buf
_
;
init_buf
;
CallOpSet
<
CallOpRecvInitialMetadata
>
meta_buf
_
;
CallOpSet
<
CallOpRecvInitialMetadata
>
meta_buf
;
CallOpSet
<
CallOpRecvInitialMetadata
,
CallOpRecvMessage
<
R
>
,
CallOpSet
<
CallOpRecvInitialMetadata
,
CallOpRecvMessage
<
R
>
,
CallOpClientRecvStatus
>
CallOpClientRecvStatus
>
finish_buf
_
;
finish_buf
;
}
ops
;
}
ops
_
;
// TODO(vjpai): Remove the collection_ as soon as the related workaround
// TODO(vjpai): Remove the collection_ as soon as the related workaround
// (public constructor) is deleted
// (public constructor) is deleted
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment