From 38206982904efd93695f1b0307ae2c8a5885cffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 9 Mar 2005 02:05:18 +0000 Subject: [PATCH] Renamed threadIDEnd to lastThreadID as I think it's clearer. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11630 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/thread.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kernel/core/thread.c b/src/kernel/core/thread.c index dd2f159220..0e35078160 100644 --- a/src/kernel/core/thread.c +++ b/src/kernel/core/thread.c @@ -1531,7 +1531,7 @@ _get_next_thread_info(team_id team, int32 *_cookie, thread_info *info, size_t si struct thread *thread = NULL; cpu_status state; int slot; - thread_id threadIDEnd; + thread_id lastThreadID; if (info == NULL || size != sizeof(thread_info) || team < B_OK) return B_BAD_VALUE; @@ -1546,11 +1546,11 @@ _get_next_thread_info(team_id team, int32 *_cookie, thread_info *info, size_t si state = disable_interrupts(); GRAB_THREAD_LOCK(); - threadIDEnd = peek_next_thread_id(); - if (slot >= threadIDEnd) + lastThreadID = peek_next_thread_id(); + if (slot >= lastThreadID) goto err; - while (slot < threadIDEnd + while (slot < lastThreadID && (!(thread = thread_get_thread_struct_locked(slot)) || thread->team->id != team)) slot++;