home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!lysator.liu.se!cmh
- From: cmh@lysator.liu.se (Magnus Holmgren)
- Subject: Re: WShell: Hangning forbid!
- Message-ID: <Bz7ysq.Lw6@lysator.liu.se>
- Organization: Lysator Academic Computer Society, Linkoping University, Sweden
- References: <1992Dec12.143541.21468@sth.frontec.se>
- Date: Sun, 13 Dec 1992 22:36:25 GMT
- Lines: 30
-
- bjst@sth.frontec.se (Bjorn Stenberg) writes:
-
-
- >A while ago there was some talk about process syncronization when
- >multithreading, and Randell Jesup suggested doing:
-
- > ...
- > Forbid();
- > Signal(parent,sig); // tell parent we exited
- >}
-
- >to make sure the child has exited before any other process gets a time slice.
-
- >Well, I do this in a child of mine, but after the parent exits WShell
- >complains with the message:
-
- >***Hanging forbid!
-
- >Is WShell just being paranoid or am I doing something wrong? (I'm not supposed
- >to Permit() or anything in the parent, am I?)
-
- In a sense, WShell is paranoid, but I find these kinds of messages useful.
- However, if you code assembler, there is a way around this. Instead of
- just exit your program with an rts, make a jmp _LVOPermit(a6). This way,
- WShell will not complain, and the rts that exits your program is in the
- Kickstart, so even if the child would unload some code, there is no
- problem.
- --
- Magnus Holmgren | Email: cmh@lysator.liu.se, cmh@augs.se | FIDO: 2:204/404.6
- Comp. Science & Engineering student, Linkoping Institute of Technology, Sweden
-