[PATCH 5/5] Implement KeAreApcsDisabled using critical region functions.
Thomas Faber
thomas.faber at reactos.org
Fri Mar 29 06:48:04 CDT 2019
On 2019-03-28 21:47, Derek Lesho wrote:
> @@ -3448,7 +3449,10 @@ void WINAPI ExReleaseResourceForThreadLite( PERESOURCE resource, ERESOURCE_THREA
> */
> void WINAPI KeEnterCriticalRegion(void)
> {
> - FIXME(": stub\n");
> + PETHREAD thread = (PETHREAD) KeGetCurrentThread();
> +
> + /* FIXME: actually disable certain APCs */
> + thread->critical_region = TRUE;
> }
Critical regions can be nested, so you'd need a counter instead of a
boolean.
More information about the wine-devel
mailing list