summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-11-15 00:17:09 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-11-15 00:17:09 +0100
commit6aa423efea4835b245dfc07bd06df8d5d06c4f73 (patch)
tree7e9fa7636b57dec08837d7139abea02dfc9385c9
parent9b5429e834cde56f73b8ff605e36afc7d9bb6e1b (diff)
Add comments
-rw-r--r--libports/manage-multithread.c2
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;
}