Mercurial Hosting > luan
comparison core/src/luan/modules/ThreadLuan.java @ 574:6cc2f047019b
remove LuanState.call()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 13 Jul 2015 12:31:53 -0600 |
parents | c6bcb8859b93 |
children | 31926755689e |
comparison
equal
deleted
inserted
replaced
573:894f991baac5 | 574:6cc2f047019b |
---|---|
18 final LuanState newLuan = (LuanState)cloner.deepClone(luan); | 18 final LuanState newLuan = (LuanState)cloner.deepClone(luan); |
19 final LuanFunction newFn = (LuanFunction)cloner.get(fn); | 19 final LuanFunction newFn = (LuanFunction)cloner.get(fn); |
20 final Object[] newArgs = cloner.deepClone(args); | 20 final Object[] newArgs = cloner.deepClone(args); |
21 exec.execute(new Runnable(){public void run() { | 21 exec.execute(new Runnable(){public void run() { |
22 try { | 22 try { |
23 newLuan.call(newFn,"<forked>",newArgs); | 23 newFn.call(newLuan,newArgs); |
24 } catch(LuanException e) { | 24 } catch(LuanException e) { |
25 e.printStackTrace(); | 25 e.printStackTrace(); |
26 } | 26 } |
27 }}); | 27 }}); |
28 } | 28 } |