Re: [CVS ci] parrot-threads-1

2003-12-22 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 4:30 PM +0100 12/17/03, Leopold Toetsch wrote: >> getinterp P2 >> find_method P0, P2, "thread" >> find_global P6, "_foo" >> clone P5, P2 >> invoke # start the thread > I think I'd like to start new threads a bit differently, at lea

Re: [CVS ci] parrot-threads-1

2003-12-22 Thread Dan Sugalski
At 4:30 PM +0100 12/17/03, Leopold Toetsch wrote: getinterp P2 find_method P0, P2, "thread" find_global P6, "_foo" clone P5, P2 invoke # start the thread I think I'd like to start new threads a bit differently, at least much more explicitly than an invoke. Invoke on an int

[CVS ci] parrot-threads-1

2003-12-17 Thread Leopold Toetsch
getinterp P2 find_method P0, P2, "thread" find_global P6, "_foo" clone P5, P2 invoke # start the thread This little piece of code runs the subroutine "_foo" in a separate thread inside interpreter P5. There are of course a lot of things missing, ParrotInterpreter::clone