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
This commit is contained in:
Axel Dörfler 2005-03-09 02:05:18 +00:00
parent 4eadd9005b
commit 3820698290

View File

@ -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++;