-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
Moving out related code into a separate file. `internal.h -> stream_lists.h` Closes grpc#37775 COPYBARA_INTEGRATE_REVIEW=grpc#37775 from tanvi-jagtap:ph2_stream_lists_h 13b6030 PiperOrigin-RevId: 679205824
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// | ||
// | ||
// Copyright 2024 gRPC authors. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// | ||
|
||
#ifndef GRPC_SRC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_STREAM_LISTS_H | ||
#define GRPC_SRC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_STREAM_LISTS_H | ||
|
||
#include "src/core/ext/transport/chttp2/transport/internal.h" | ||
|
||
bool grpc_chttp2_list_add_writable_stream(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream* s); | ||
/// Get a writable stream | ||
/// returns non-zero if there was a stream available | ||
bool grpc_chttp2_list_pop_writable_stream(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream** s); | ||
bool grpc_chttp2_list_remove_writable_stream(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream* s); | ||
|
||
bool grpc_chttp2_list_add_writing_stream(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream* s); | ||
bool grpc_chttp2_list_have_writing_streams(grpc_chttp2_transport* t); | ||
bool grpc_chttp2_list_pop_writing_stream(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream** s); | ||
|
||
void grpc_chttp2_list_add_written_stream(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream* s); | ||
bool grpc_chttp2_list_pop_written_stream(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream** s); | ||
|
||
void grpc_chttp2_list_add_waiting_for_concurrency(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream* s); | ||
bool grpc_chttp2_list_pop_waiting_for_concurrency(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream** s); | ||
void grpc_chttp2_list_remove_waiting_for_concurrency(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream* s); | ||
|
||
void grpc_chttp2_list_add_stalled_by_transport(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream* s); | ||
bool grpc_chttp2_list_pop_stalled_by_transport(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream** s); | ||
void grpc_chttp2_list_remove_stalled_by_transport(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream* s); | ||
|
||
void grpc_chttp2_list_add_stalled_by_stream(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream* s); | ||
bool grpc_chttp2_list_pop_stalled_by_stream(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream** s); | ||
bool grpc_chttp2_list_remove_stalled_by_stream(grpc_chttp2_transport* t, | ||
grpc_chttp2_stream* s); | ||
|
||
#endif // GRPC_SRC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_STREAM_LISTS_H |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.