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: Passing arguments to a thread
- Date: 27 Jan 1996 11:14:34 GMT
- Message-ID: <4ed1eq$nfi@newsy.ifm.liu.se>
- 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)
-
- 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
- jmp ThreadStart
-
- ... modify the #0 to point to my data structure, flush the cache and
- start the process (which does FreeVec(a1)).
-
- Somehow, this does not seem like a nice solution.
-
- The code is located in a shared library.
-
- --
- +--------- Martin 'Leviticus' Blom ----------+ Commodore 128D
- | Linkoping Institute of Technology - Sweden | Amiga 4000/040
- +----------- lcs@lysator.liu.se -------------+
- http://www.lysator.liu.se/~lcs/
-