diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2014-11-19 00:19:57 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2014-11-19 00:23:48 -0800 |
commit | e0bf118825765fc2a81e7a5c9b65304c3cc02b02 (patch) | |
tree | 5a73c09ed4b2f38b5f8e283faa07257a4518a820 /mu.arc.t | |
parent | 38e51bc6175397d134b10b0ba87e4bd77067d32d (diff) | |
download | mu-e0bf118825765fc2a81e7a5c9b65304c3cc02b02.tar.gz |
275 - pass args to fork
Only literals for starters.
Diffstat (limited to 'mu.arc.t')
-rw-r--r-- | mu.arc.t | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t index 7a8665eb..7487f57b 100644 --- a/mu.arc.t +++ b/mu.arc.t @@ -1801,6 +1801,17 @@ (if (~iso memory*.2 4) (prn "F - fork works")) +(reset) +(new-trace "fork-with-args") +(add-fns + '((f1 + (fork (f2 fn) (4 literal))) + (f2 + ((2 integer) <- arg)))) +(run 'f1) +(if (~iso memory*.2 4) + (prn "F - fork can pass args")) + ; The scheduler needs to keep track of the call stack for each routine. ; Eventually we'll want to save this information in mu's address space itself, ; along with the types array, the magic buffers for args and oargs, and so on. |