WriteFile without blocking Critical priority thread
Posted on 2005-05-11
Hi, I have a CRITICAL_PRIORITY thread that must absolutely perform work every 20ms.
From this thread, I try to write a 400 byte message to disk. However if the disk subsystem is bogged down or other, this can take longer than the acceptable amount of time.
Is there a safe way to write to sume buffered thread that will then write to disk?
But I can't have the Critical thread be interrupted for anything... so how can I pass the data to the other thread properly?
Do I have to use somewhat experimental "lockless" data structures?