home *** CD-ROM | disk | FTP | other *** search
- Path: news.ifm.liu.se!d93marbl
- From: d93marbl@isy.liu.se (Martin Blom)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Passing arguments to a thread
- Date: 4 Feb 1996 11:37:24 GMT
- Message-ID: <4f25pk$aq2@newsy.ifm.liu.se>
- References: <4ed1eq$nfi@newsy.ifm.liu.se> <4elg30$695@sunsystem5.informatik.tu-muenchen.de>
- NNTP-Posting-Host: mut.isy.liu.se
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: NN version 6.5.0 #26 (NOV)
-
- fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer) writes:
-
-
- >|> Is there a (nice) way to pass arguments to a new process?
- >|> Right now I allocate some memory and copy the following code:
- >|> Kick:
- >|> lea kick(pc),a1
- >|> move.l #0,a0
- >Why not load a0 from a global var ?
-
- I can't use global variables in a library.
-
- >|> jmp ThreadStart
- >Isn't this rather a jmp (a0) ?
-
- No. a0 is the argument I wish to pass to the thread.
-
- >I don't know if I understood the problem right.
-
- >You created a new task and want to pass args to it, with the code
- >beeing shared-lib code ?
-
- Correct.
-
- >Well, I'd use global vars. A library can have global vars, if I
- >understood right (I'd call intbase->activewindow a var global
- >for the intuilib).
-
- >idea:
-
- [deleted]
-
- >Well, can it be done like that ? I bet normally it's done different
- >on Amiga, but would this work ?
-
- I think it would work, but wouldn't that be even uglier than my current
- approach?
-
-
- --
- +--------- Martin 'Leviticus' Blom ----------+ Commodore 128D
- | Linkoping Institute of Technology - Sweden | Amiga 4000/040
- +----------- lcs@lysator.liu.se -------------+
- http://www.lysator.liu.se/~lcs/
-