| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Timing out a REXX program |
Mike.... I noticed your msg in the programming echo, however you said something about REXX not being able to communicate with another process (or I read it wrong..). You can use Queues to send messages back and forth between the calling program and any thread that you may have started with the process by setting the queue in both via the RXQUEUE function (sp?). The process does not have to be a thread either as long as you sync the queue names on both to be the same. If you want to time it out, then if you use a timer on the parent to time the process and a loop in the thread to check the queue, then simply stuffing a value in there to be read by the Queue function can do it, and if the value matches the timeout, exit the thread. I use this method in my Keep'n It Simple program which allows it to be reconfigured on the fly. The queue tells the thread that the configuration program is running, and when it exits it empties the queue which the thread reads and reinit's the INI values that were changed in it then restarts itself. Hope this helps! * OLX 2.2 * Responsibility in Life: Vote LIbertarian. --- KBBS vZ.20p (#ARI-00099)* Origin: The Programmers FORUM! 803-963-0581(1:3639/1) SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 3639/1 2 3615/50 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.