aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/tsi/alts_transport_security.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/tsi/alts_transport_security.h')
-rw-r--r--src/core/tsi/alts_transport_security.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/tsi/alts_transport_security.h b/src/core/tsi/alts_transport_security.h
index c90e31478e..5d693d04af 100644
--- a/src/core/tsi/alts_transport_security.h
+++ b/src/core/tsi/alts_transport_security.h
@@ -28,10 +28,17 @@ typedef struct alts_shared_resource {
grpc_channel* channel;
grpc_completion_queue* cq;
gpr_mu mu;
+ gpr_cv cv;
+ bool is_cq_drained;
} alts_shared_resource;
/* This method returns the address of alts_shared_resource object shared by all
* TSI handshakes. */
alts_shared_resource* alts_get_shared_resource(void);
+/* This method signals the thread that invokes grpc_tsi_alts_shutdown() to
+ * continue with destroying the cq as a part of shutdown process. */
+
+void grpc_tsi_alts_signal_for_cq_destroy(void);
+
#endif /* GRPC_CORE_TSI_ALTS_TRANSPORT_SECURITY_H */