delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/03/05:35:37

Xref: news2.mv.net comp.os.msdos.djgpp:3379
From: bram AT gig DOT nl (Bram Stolk)
Newsgroups: comp.os.msdos.djgpp
Subject: [Q] non-blocking reads?
Date: 2 May 1996 09:27:43 GMT
Organization: Euronet Internet
Lines: 25
Message-ID: <4m9v6f$mnq@news.euro.net>
NNTP-Posting-Host: shadwell.gig.nl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello coder,


I am currently writing a game with djgpp (then again, who isn't?).
And I want to do some file-reading on the fly.

So I initiate the reading of file foo, then I continue running the
game, and at each frame I poll for the completion of the file-io.
Let us say that 150 frames later, I see that the file is finaly read,
and then I can use the file buffer.

I think I know how to do something like this in UNIX. Because
in UNIX you can always fork, and have the child do filereads, and
have it sent to the parent using IPC.
In djgpp, according to libc.info you cannot fork().

So eh, you could call it 'non-blocking reads'.
Or 'filereads in background process'.

So, which mega-coder is going to help me out here?
Thanks a lot,

                Bram Stolk
		bram AT gig DOT nl

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019