Mercurial Hosting > luan
diff src/luan/modules/ThreadLuan.java @ 781:fbbdd369a13a
rename DeepCloner to LuanCloner
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 29 Aug 2016 22:49:32 -0600 |
parents | 1a68fc55a80c |
children | 655280eab1e2 |
line wrap: on
line diff
--- a/src/luan/modules/ThreadLuan.java Mon Aug 29 21:47:19 2016 -0600 +++ b/src/luan/modules/ThreadLuan.java Mon Aug 29 22:49:32 2016 -0600 @@ -11,7 +11,7 @@ import luan.LuanFunction; import luan.LuanTable; import luan.LuanException; -import luan.DeepCloner; +import luan.LuanCloner; public final class ThreadLuan { @@ -19,7 +19,7 @@ private static final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor(); public static void fork(LuanState luan,LuanFunction fn,Object... args) { - DeepCloner cloner = new DeepCloner(); + LuanCloner cloner = new LuanCloner(); final LuanState newLuan = (LuanState)cloner.deepClone(luan); final LuanFunction newFn = (LuanFunction)cloner.get(fn); final Object[] newArgs = cloner.deepClone(args); @@ -44,7 +44,7 @@ } public static void schedule(LuanState luan,long delay,boolean repeat,LuanFunction fn,Object... args) { - DeepCloner cloner = new DeepCloner(); + LuanCloner cloner = new LuanCloner(); final LuanState newLuan = (LuanState)cloner.deepClone(luan); final LuanFunction newFn = (LuanFunction)cloner.get(fn); final Object[] newArgs = cloner.deepClone(args);