diff options
-rw-r--r-- | libports/manage-multithread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index e95657e1..82fa2ac6 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -60,6 +60,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, assert (nreqthreads); nreqthreads--; if (nreqthreads == 0) + /* No thread would be listening for requests, spawn one. */ spawn = 1; spin_unlock (&lock); @@ -152,6 +153,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, spin_lock (&lock); if (nreqthreads == 1) { + /* No other thread is listening for requests, continue. */ spin_unlock (&lock); goto startover; } |