https://git.reactos.org/?p=reactos.git;a=commitdiff;h=853f04e6fc8b7a2560564e...
commit 853f04e6fc8b7a2560564e5e266a231c60109275 Author: Pierre Schweitzer pierre@reactos.org AuthorDate: Wed Feb 7 17:51:35 2018 +0100 Commit: Pierre Schweitzer pierre@reactos.org CommitDate: Wed Feb 7 21:37:17 2018 +0100
[NTOSKRNL] Rename ExpCriticalWorkerThreads and ExpDelayedWorkerThreads (no p) to match Windows names and make them available for the whole kernel. --- ntoskrnl/ex/work.c | 8 ++++---- ntoskrnl/include/internal/ex.h | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ntoskrnl/ex/work.c b/ntoskrnl/ex/work.c index a5cfe71909..731f442a85 100644 --- a/ntoskrnl/ex/work.c +++ b/ntoskrnl/ex/work.c @@ -35,8 +35,8 @@ EX_WORK_QUEUE ExWorkerQueue[MaximumWorkQueue];
/* Accounting of the total threads and registry hacked threads */ -ULONG ExpCriticalWorkerThreads; -ULONG ExpDelayedWorkerThreads; +ULONG ExCriticalWorkerThreads; +ULONG ExDelayedWorkerThreads; ULONG ExpAdditionalCriticalWorkerThreads; ULONG ExpAdditionalDelayedWorkerThreads;
@@ -566,7 +566,7 @@ ExpInitializeWorkerThreads(VOID) { /* Create the thread */ ExpCreateWorkerThread(CriticalWorkQueue, FALSE); - ExpCriticalWorkerThreads++; + ExCriticalWorkerThreads++; }
/* Create the built-in worker threads for the delayed queue */ @@ -574,7 +574,7 @@ ExpInitializeWorkerThreads(VOID) { /* Create the thread */ ExpCreateWorkerThread(DelayedWorkQueue, FALSE); - ExpDelayedWorkerThreads++; + ExDelayedWorkerThreads++; }
/* Create the built-in worker thread for the hypercritical queue */ diff --git a/ntoskrnl/include/internal/ex.h b/ntoskrnl/include/internal/ex.h index 09ba4648df..053b8c813c 100644 --- a/ntoskrnl/include/internal/ex.h +++ b/ntoskrnl/include/internal/ex.h @@ -28,6 +28,8 @@ extern LIST_ENTRY ExpNonPagedLookasideListHead; extern LIST_ENTRY ExpPagedLookasideListHead; extern KSPIN_LOCK ExpNonPagedLookasideListLock; extern KSPIN_LOCK ExpPagedLookasideListLock; +extern ULONG ExCriticalWorkerThreads; +extern ULONG ExDelayedWorkerThreads;
/* * NT/Cm Version Info variables