TIP: Click on subject to list as thread! ANSI
echo: delphi
to: JANNIEK HUMMELINK
from: SRDJAN DAKIC
date: 1996-12-19 10:14:00
subject: Flushing disk-buffers

 SD>      curProcess := GetCurrentProcess();
 SD>      SetPriorityClass(curProcess, REALTIME_PRIORITY_CLASS);
 SD>      curThread := GetCurrentThread();
 SD>      SetThreadPriority(curThread, THREAD_PRIORITY_TIME_CRITICAL);
 JH> Thank you for this tip.
    However, I forgot to mention that you have to save old class and old
    priority using GetPriorityClass and GetThreadPriority functions and
    restore it after processing time-critical code.
    BTW, realtime atribute of my program is selling advertising space (on
    the scroll bar) based on cm/seconds scrolling speed. (faster=cheaper)
 JH> However, the mousepointer is not 'dead' during the 'XT-Mode' ;-) .
    It isn't, on a _fast_ Pentium.
    BTW, I have ProVideo graphics card (ISA) and unfornunately there are
    still pauses - I guess the card is not fast enough. :-(
 JH> Also the clicks are stored in a buffer or so; as soon as the
 JH> Priorities are set to normal, the clicks become effective...
 JH> Do you have the same experience?
    Yes... and I found it normal, since mouse driver still works and
    sends messages to Windows message queue but Win processes them only
    when idle mode is started again.
    Srdjan
... NEGAZIONE 100%
--- ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ suicidal@panon.ns.ac.yu ÄÄÄ
(1:3618/555)
---------------
* Origin: The NeverEnding BBS-Deltona FL 904-789-8383/neverending.com

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.