🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #1701

Re: Task synchronization

#1701
From: Matt Dillon
Date: Tue, 17 Oct 1989 05:56
19 lines
772 bytes
	Easy. The close down sequence can work like this:

    MainTask:	Signal SubTask

    SubTask:

	if (cleanupsignal) {
	    Cleanup();
	    Forbid();
	    Signal(MainTask, whatever)
	    Wait(0);
	}

	You can even get rid of the Forbid()... the maintask then
    simply RemTask()s the subtask.  This kills the subtask in whatever
    it's doing (which is nothing... a Wait(0)).

					-Matt
Technical Details
Message-ID: <8910170556.AA04965@postgres.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!POSTGRES.BERKELEY.EDU!dillon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!POSTGRES.BERKELEY.EDU!dillon
From: dillon@POSTGRES.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Task synchronization
Message-ID: <8910170556.AA04965@postgres.Berkeley.EDU>
Date: 17 Oct 89 05:56:43 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 19