Commit e928899e authored by Scott Vokes's avatar Scott Vokes
Browse files

Remove comment, issue has been addressed.

Now, the threadpool checks whether any threads are asleep, wakes them,
otherwise tries to start another thread if the limit has not yet been
reached.
parent 9891837b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -184,7 +184,6 @@ void threadpool_free(struct threadpool *t) {
}

static void notify_new_task(struct threadpool *t) {
    /* FIXME: should this be 'if any are sleeping'? needs benchmarking. */
    for (int i = 0; i < t->live_threads; i++) {
        struct thread_info *ti = &t->threads[i];
        if (ti->status == STATUS_ASLEEP) {