mirror of https://github.com/grpc/grpc.git
[PH2][Refactor][internal.h] Split file. Add stream_lists.h (#37775)
Moving out related code into a separate file.
`internal.h -> stream_lists.h`
Closes #37775
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37775 from tanvi-jagtap:ph2_stream_lists_h 13b6030ceb
PiperOrigin-RevId: 679205824
pull/37006/head^2
parent
f2ffbb89a2
commit
f6f13ccaec
15 changed files with 82 additions and 41 deletions
@ -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
|
Loading…
Reference in new issue