|
|
|
@ -102,8 +102,9 @@ grpc_connectivity_state grpc_connectivity_state_check( |
|
|
|
|
|
|
|
|
|
grpc_connectivity_state grpc_connectivity_state_get( |
|
|
|
|
grpc_connectivity_state_tracker *tracker, grpc_error **error) { |
|
|
|
|
grpc_connectivity_state cur =(grpc_connectivity_state) |
|
|
|
|
gpr_atm_no_barrier_load(&tracker->current_state_atm); |
|
|
|
|
grpc_connectivity_state cur = |
|
|
|
|
(grpc_connectivity_state)gpr_atm_no_barrier_load( |
|
|
|
|
&tracker->current_state_atm); |
|
|
|
|
if (grpc_connectivity_state_trace) { |
|
|
|
|
gpr_log(GPR_DEBUG, "CONWATCH: %p %s: get %s", tracker, tracker->name, |
|
|
|
|
grpc_connectivity_state_name(cur)); |
|
|
|
@ -122,8 +123,9 @@ bool grpc_connectivity_state_has_watchers( |
|
|
|
|
bool grpc_connectivity_state_notify_on_state_change( |
|
|
|
|
grpc_exec_ctx *exec_ctx, grpc_connectivity_state_tracker *tracker, |
|
|
|
|
grpc_connectivity_state *current, grpc_closure *notify) { |
|
|
|
|
grpc_connectivity_state cur =(grpc_connectivity_state) |
|
|
|
|
gpr_atm_no_barrier_load(&tracker->current_state_atm); |
|
|
|
|
grpc_connectivity_state cur = |
|
|
|
|
(grpc_connectivity_state)gpr_atm_no_barrier_load( |
|
|
|
|
&tracker->current_state_atm); |
|
|
|
|
if (grpc_connectivity_state_trace) { |
|
|
|
|
if (current == NULL) { |
|
|
|
|
gpr_log(GPR_DEBUG, "CONWATCH: %p %s: unsubscribe notify=%p", tracker, |
|
|
|
@ -173,8 +175,9 @@ void grpc_connectivity_state_set(grpc_exec_ctx *exec_ctx, |
|
|
|
|
grpc_connectivity_state_tracker *tracker, |
|
|
|
|
grpc_connectivity_state state, |
|
|
|
|
grpc_error *error, const char *reason) { |
|
|
|
|
grpc_connectivity_state cur =(grpc_connectivity_state) |
|
|
|
|
gpr_atm_no_barrier_load(&tracker->current_state_atm); |
|
|
|
|
grpc_connectivity_state cur = |
|
|
|
|
(grpc_connectivity_state)gpr_atm_no_barrier_load( |
|
|
|
|
&tracker->current_state_atm); |
|
|
|
|
grpc_connectivity_state_watcher *w; |
|
|
|
|
if (grpc_connectivity_state_trace) { |
|
|
|
|
const char *error_string = grpc_error_string(error); |
|
|
|
|