| delorie.com/archives/browse.cgi | search |
| Date: | Fri, 27 Oct 2000 08:24:30 +0200 |
| From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | djgpp AT delorie DOT com |
| Message-Id: | <9743-Fri27Oct2000082429+0200-eliz@is.elta.co.il> |
| X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.5h |
| In-reply-to: | <8talgs$hch$1@nnrp1.deja.com> (message from Leeoswald on Fri, 27 |
| Oct 2000 01:24:48 GMT) | |
| Subject: | Re: Timer (Allegro) |
| References: | <8talgs$hch$1 AT nnrp1 DOT deja DOT com> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: Leeoswald <leeoswald AT my-deja DOT com> > Newsgroups: comp.os.msdos.djgpp > Date: Fri, 27 Oct 2000 01:24:48 GMT > > I want to execute a sub-rotine from the main. > But I want the sub-rotine runs during a limited time (some seconds) > controled by the main(. It is possible? If yes, how? You can set up a timer, before calling that function, so that it will go off after a certain time. If the handler for the SIGALRM signal is in `main', you get what you want. Read the docs of the library functions `alarm' and `setitimer', for more details.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |