Time to commit remote ops for VirtualAllocEx, CreateRemoteThread

Alexandre Julliard julliard at winehq.org
Fri Aug 4 14:45:06 CDT 2006


"Dan Kegel" <dank at kegel.com> writes:

> Tommy's APC version of his
> VirtualAllocEx / CreateRemoteThread patch
> seems to be safe (since APCs only run a points where threads
> in well-written programs are not holding locks),

Unfortunately there's no such guarantee, kernel APCs will run on every
wait. Unless you meant user APCs which only run on alertable waits,
but this means they would essentially never run. Like so much of the
Windows API, APCs are a feature that could have been useful if it had
been properly thought out...

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list