fsmonitor--daemon: rename listener thread related variables
Rename platform-specific listener thread related variables and data types as we prepare to add another backend thread type. [] `struct fsmonitor_daemon_backend_data` becomes `struct fsm_listen_data` [] `state->backend_data` becomes `state->listen_data` [] `state->error_code` becomes `state->listen_error_code` Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
802aa31840
commit
207534e423
@ -1225,8 +1225,8 @@ cleanup:
|
||||
|
||||
if (err)
|
||||
return err;
|
||||
if (state->error_code)
|
||||
return state->error_code;
|
||||
if (state->listen_error_code)
|
||||
return state->listen_error_code;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1241,7 +1241,7 @@ static int fsmonitor_run_daemon(void)
|
||||
hashmap_init(&state.cookies, cookies_cmp, NULL, 0);
|
||||
pthread_mutex_init(&state.main_lock, NULL);
|
||||
pthread_cond_init(&state.cookies_cond, NULL);
|
||||
state.error_code = 0;
|
||||
state.listen_error_code = 0;
|
||||
state.current_token_data = fsmonitor_new_token_data();
|
||||
|
||||
/* Prepare to (recursively) watch the <worktree-root> directory. */
|
||||
|
||||
Reference in New Issue
Block a user