GRPC Core  9.0.0
alts_shared_resource.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2018 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPC_CORE_TSI_ALTS_HANDSHAKER_ALTS_SHARED_RESOURCE_H
20 #define GRPC_CORE_TSI_ALTS_HANDSHAKER_ALTS_SHARED_RESOURCE_H
21 
23 
24 #include <grpc/grpc.h>
25 #include <grpc/support/sync.h>
26 
27 #include "src/core/lib/gprpp/thd.h"
30 
43 
44 /* This method returns the address of alts_shared_resource_dedicated
45  * object shared by all TSI handshakes.
46  */
48 
55 
62 
70  const char* handshaker_service_url);
71 
72 #endif /* GRPC_CORE_TSI_ALTS_HANDSHAKER_ALTS_SHARED_RESOURCE_H \
73  */
Definition: thd.h:46
void grpc_alts_shared_resource_dedicated_init()
This method initializes the alts_shared_resource_dedicated object shared by all TSI handshakes...
Definition: alts_shared_resource.cc:49
Definition: channel.h:66
Definition: completion_queue.h:39
grpc_completion_queue * cq
Definition: alts_shared_resource.h:37
Main struct containing ALTS shared resources used when employing the dedicated completion queue and t...
Definition: alts_shared_resource.h:35
void grpc_alts_shared_resource_dedicated_shutdown()
This method destroys the alts_shared_resource_dedicated object shared by all TSI handshakes.
Definition: alts_shared_resource.cc:72
alts_shared_resource_dedicated * grpc_alts_get_shared_resource_dedicated(void)
Definition: alts_shared_resource.cc:29
Definition: sync_windows.h:26
struct alts_shared_resource_dedicated alts_shared_resource_dedicated
Main struct containing ALTS shared resources used when employing the dedicated completion queue and t...
Definition: completion_queue.cc:321
struct grpc_pollset_set grpc_pollset_set
Definition: pollset_set.h:31
grpc_cq_completion storage
Definition: alts_shared_resource.h:39
grpc_core::Thread thread
Definition: alts_shared_resource.h:36
grpc_pollset_set * interested_parties
Definition: alts_shared_resource.h:38
void grpc_alts_shared_resource_dedicated_start(const char *handshaker_service_url)
This method populates various fields of the alts_shared_resource_dedicated object shared by all TSI h...
Definition: alts_shared_resource.cc:54
grpc_channel * channel
Definition: alts_shared_resource.h:41
gpr_mu mu
Definition: alts_shared_resource.h:40