Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!leah!rpi!pawl!shadow From: shadow@pawl.rpi.edu (Deven T. Corzine) Newsgroups: comp.sys.amiga.tech Subject: Re: Help with Multitasking and Multiple Windows Message-ID: Date: 5 Aug 89 21:52:57 GMT References: <15645@watdragon.waterloo.edu> <7541@cbmvax.UUCP> Sender: usenet@rpi.edu Distribution: comp Organization: Rensselaer Polytechnic Institute, Troy, NY Lines: 21 In-reply-to: jesup@cbmvax.UUCP's message of 4 Aug 89 18:36:17 GMT On 4 Aug 89 18:36:17 GMT, jesup@cbmvax.UUCP (Randell Jesup) said: Randell> Many of those don't involve layers, just the rastport. Randell> There is no locking of rastports. What you need to do is Randell> create multiple rastports refering to the same bitmap/layers. Randell> I believe copying the entire rastport is kosher, provided you Randell> also make new tmpras's if you have one (i.e. don't try to Randell> share a tmpras.) Then a SetAPen will only affect one Randell> process, not both/all. Unless he wants to share the rastport and pen colors and whatnot... Adding some semaphore locking would work nicely as well... Deven -- Deven T. Corzine Internet: deven@rpi.edu, shadow@pawl.rpi.edu Snail: 2214 12th Street, Troy, NY 12180 Phone: (518) 271-0750 Bitnet: deven@rpitsmts, userfxb6@rpitsmts UUCP: uunet!rpi!deven Simple things should be simple and complex things should be possible.