about summary refs log tree commit diff
path: root/mthread.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-05-04 15:00:07 +0200
committerLeah Neukirchen <leah@vuxu.org>2020-05-04 15:00:07 +0200
commit61caf5a6a35ae73fd0842ba8886856e9298942d1 (patch)
tree4557c60e167c97ad5095234034fda55511c06ef8 /mthread.c
parent4927d44d5518412c41322721a07ec8c56bdb45f7 (diff)
downloadmblaze-61caf5a6a35ae73fd0842ba8886856e9298942d1.tar.gz
mblaze-61caf5a6a35ae73fd0842ba8886856e9298942d1.tar.xz
mblaze-61caf5a6a35ae73fd0842ba8886856e9298942d1.zip
mthread: comment depth convention
Diffstat (limited to 'mthread.c')
-rw-r--r--mthread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mthread.c b/mthread.c
index a29d7b2..023029d 100644
--- a/mthread.c
+++ b/mthread.c
@@ -438,6 +438,9 @@ main(int argc, char *argv[])
 	else
 		i = blaze822_loop(argc-optind, argv+optind, thread);
 
+	// the tree of all toplevel threads has depth -1,
+	// so toplevel threads have depth 0.
+
 	find_roots();
 	if (!vflag)
 		prune_tree(top, -1);