Remove unused thread_select_any() function
This commit is contained in:
parent
757a8e9f39
commit
7f63d1e048
@ -374,31 +374,6 @@ thread_select_running(struct mux *mux,
|
|||||||
return 0;
|
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
|
int
|
||||||
thread_set_cpu(struct thread *th, struct cpu *cpu)
|
thread_set_cpu(struct thread *th, struct cpu *cpu)
|
||||||
{
|
{
|
||||||
|
@ -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_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_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_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 int thread_create_pcf_types(struct pcf *pcf);
|
||||||
USE_RET struct pcf_type *thread_get_affinity_pcf_type(struct pcf *pcf);
|
USE_RET struct pcf_type *thread_get_affinity_pcf_type(struct pcf *pcf);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user