On Fri, 25 Mar 2011 16:05:17 -0400, you wrote:
|Hadn't we agreed in a previous thread that there wasn't any reason for you to be using SysWait? Unless you know the intimate details of SysWait (and you don't!) you shouldn't go near it.
|
|(And SysWait for 1 or 2 milliseconds is never going to work, because it will sleep more than that before doing the check.)
I believe we did not discuss SysWait() at all (at least in several years).
It does work well.
I can
Code:
typedef VOID *(WINAPI *SYSWAITTYPE)(ULONGLONG, INT);
HMODULE hTC = GetModuleHandle(L"TakeCmd.DLL");
syswait = (SYSWAITTYPE) GetProcAddress(hTC, "SysWait");
and that works well in v12.10. But it also gets it from earlier versions of the
DLL though in which case, the signature is wrong and it doesn't work correctly.
I suppose I could test _VERSION and decide whether to do that.
In another recent post, samintz said he gets signal handling when he loops
arounf Sleep() and tty_yield(0). I don't. ... ???