[haiku-commits] r41403 - haiku/branches/developer/bonefish/signals/src/system/kernel

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 9 May 2011 19:32:26 +0200 (CEST)

Author: bonefish
Date: 2011-05-09 19:32:26 +0200 (Mon, 09 May 2011)
New Revision: 41403
Changeset: https://dev.haiku-os.org/changeset/41403

Modified:
   haiku/branches/developer/bonefish/signals/src/system/kernel/thread.cpp
Log:
Added TODO.


Modified: haiku/branches/developer/bonefish/signals/src/system/kernel/thread.cpp
===================================================================
--- haiku/branches/developer/bonefish/signals/src/system/kernel/thread.cpp      
2011-05-09 16:49:17 UTC (rev 41402)
+++ haiku/branches/developer/bonefish/signals/src/system/kernel/thread.cpp      
2011-05-09 17:32:26 UTC (rev 41403)
@@ -2544,6 +2544,8 @@
        } else {
                // Find the one thread with an ID greater than ours (as long as 
the IDs
                // don't wrap they are always sorted from highest to lowest).
+               // TODO: That is broken not only when the IDs wrap, but also 
for the
+               // kernel team, to which threads are added when they are dying.
                for (Thread* next = team->thread_list; next != NULL;
                                next = next->team_next) {
                        if (next->id <= lastID)


Other related posts:

  • » [haiku-commits] r41403 - haiku/branches/developer/bonefish/signals/src/system/kernel - ingo_weinhold