lwp-track-qwaiting-second-try-20040728

FIXES 5616

track qwaiting lwps rather than potentially leaking them
This commit is contained in:
Jeffrey Hutzelman 2004-07-28 21:59:58 +00:00 committed by Derrick Brashear
parent b20129a337
commit 40d54d5dd1

View File

@ -237,7 +237,7 @@ LWP_QWait(void)
{
register PROCESS tp;
(tp = lwp_cpptr)->status = QWAITING;
move(tp, &runnable[tp->priority], qwaiting);
move(tp, &runnable[tp->priority], &qwaiting);
Set_LWP_RC();
return LWP_SUCCESS;
}
@ -248,7 +248,7 @@ LWP_QSignal(pid)
{
if (pid->status == QWAITING) {
pid->status = READY;
move(pid, qwaiting, &runnable[pid->priority]);
move(pid, &qwaiting, &runnable[pid->priority]);
return LWP_SUCCESS;
} else
return LWP_ENOWAIT;