| 885 | SWI_TQ_FAST, INTR_MPSAFE, &taskqueue_fast_ih)); |
| 886 | |
| 887 | int |
| 888 | taskqueue_member(struct taskqueue *queue, struct thread *td) |
| 889 | { |
| 890 | int i, j, ret = 0; |
| 891 | |
| 892 | for (i = 0, j = 0; ; i++) { |
| 893 | if (queue->tq_threads[i] == NULL) |
| 894 | continue; |
| 895 | if (queue->tq_threads[i] == td) { |
| 896 | ret = 1; |
| 897 | break; |
| 898 | } |
| 899 | if (++j >= queue->tq_tcount) |
| 900 | break; |
| 901 | } |
| 902 | return (ret); |
| 903 | } |
no outgoing calls
no test coverage detected