thrdini.c (f72d6dd4) thrdini.c (ab528ac6)
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: ntoskrnl/ke/i386/thrdini.c
5 * PURPOSE: i386 Thread Context Creation
6 * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
7 */
8

--- 481 unchanged lines hidden (view full) ---

490 if (Prcb->QuantumEnd)
491 {
492 /* Handle quantum end */
493 Prcb->QuantumEnd = FALSE;
494 KiQuantumEnd();
495 }
496 else if (Prcb->NextThread)
497 {
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: ntoskrnl/ke/i386/thrdini.c
5 * PURPOSE: i386 Thread Context Creation
6 * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
7 */
8

--- 481 unchanged lines hidden (view full) ---

490 if (Prcb->QuantumEnd)
491 {
492 /* Handle quantum end */
493 Prcb->QuantumEnd = FALSE;
494 KiQuantumEnd();
495 }
496 else if (Prcb->NextThread)
497 {
498 /* Acquire the PRCB lock */
499 KiAcquirePrcbLock(Prcb);
500
498 /* Capture current thread data */
499 OldThread = Prcb->CurrentThread;
500 NewThread = Prcb->NextThread;
501
502 /* Set new thread data */
503 Prcb->NextThread = NULL;
504 Prcb->CurrentThread = NewThread;
505

--- 14 unchanged lines hidden ---
501 /* Capture current thread data */
502 OldThread = Prcb->CurrentThread;
503 NewThread = Prcb->NextThread;
504
505 /* Set new thread data */
506 Prcb->NextThread = NULL;
507 Prcb->CurrentThread = NewThread;
508

--- 14 unchanged lines hidden ---