Remove unused thread_select_any() function

This commit is contained in:
Rodrigo Arias 2023-03-23 17:48:24 +01:00 committed by Rodrigo Arias Mallo
parent 757a8e9f39
commit 7f63d1e048
2 changed files with 0 additions and 26 deletions

View File

@ -374,31 +374,6 @@ thread_select_running(struct mux *mux,
return 0;
}
int
thread_select_any(struct mux *mux,
struct value value,
struct mux_input **input)
{
if (value.type == VALUE_NULL) {
*input = NULL;
return 0;
}
if (value.type != VALUE_INT64) {
err("expecting NULL or INT64 channel value");
return -1;
}
if (mux->ninputs != 1) {
err("mux doesn't have one input but %d", mux->ninputs);
return -1;
}
*input = mux_get_input(mux, 0);
return 0;
}
int
thread_set_cpu(struct thread *th, struct cpu *cpu)
{

View File

@ -88,7 +88,6 @@ USE_RET int thread_get_tid(struct thread *thread);
USE_RET int thread_connect(struct thread *th, struct bay *bay, struct recorder *rec);
USE_RET int thread_select_active(struct mux *mux, struct value value, struct mux_input **input);
USE_RET int thread_select_running(struct mux *mux, struct value value, struct mux_input **input);
USE_RET int thread_select_any(struct mux *mux, struct value value, struct mux_input **input);
USE_RET int thread_create_pcf_types(struct pcf *pcf);
USE_RET struct pcf_type *thread_get_affinity_pcf_type(struct pcf *pcf);