[PATCH] ntdll: Read the condition variable and manipulate the lock on the PE side.

Alexandre Julliard julliard at winehq.org
Fri Aug 21 07:59:40 CDT 2020


Zebediah Figura <z.figura12 at gmail.com> writes:

>      RtlLeaveCriticalSection( crit );
> -    status = RtlWaitOnAddress( &variable->Ptr, &val, sizeof(int), timeout );
> +    if ((status = unix_funcs->fast_wait_cv( variable, value, timeout )) == STATUS_NOT_IMPLEMENTED)
> +        status = RtlWaitOnAddress( &variable->Ptr, &value, sizeof(value), timeout );

Couldn't you always use RtlWaitOnAddress, since it has a fast path
already?  I'd like to reduce the number of non-syscall entry points into
the Unix library.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list