[comp.sys.ibm.pc] Aborting a blocked DosRead under OS/2

agb@ecsvax.UUCP (Alan Bishop) (03/31/88)

Does anyone know of a way to interrupt a read request in a thread under OS/2?

I am working on porting C-Kermit to OS/2.  I have a thread each for the
modem line.  I would like to be able to terminate the
threads in some way when it is blocked on a device read.

However, DosKillProcess does not seem to work on threads.  A DosReadAsync
will not stop just because the calling thread exits.  So, I can find no way
to abort the request without resorting to another process.

Anyone have any ideas?  Send respons via email and I'll send a copy to
anyone who's interested.

alan