Mercurial Hosting > luan
comparison src/luan/lib/ThreadLib.java @ 135:3119326260ea
revert rev 125 and only preload Java
git-svn-id: https://luan-java.googlecode.com/svn/trunk@136 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 11 Jun 2014 06:30:46 +0000 |
parents | 0594c132888b |
children | 05f8c21160ef |
comparison
equal
deleted
inserted
replaced
134:b585d0915621 | 135:3119326260ea |
---|---|
10 import luan.DeepCloner; | 10 import luan.DeepCloner; |
11 | 11 |
12 | 12 |
13 public final class ThreadLib { | 13 public final class ThreadLib { |
14 | 14 |
15 public static void load(LuanState luan) throws LuanException { | 15 public static final String NAME = "Thread"; |
16 luan.load("Thread",LOADER); | |
17 } | |
18 | 16 |
19 public static final LuanFunction LOADER = new LuanFunction() { | 17 public static final LuanFunction LOADER = new LuanFunction() { |
20 @Override public Object call(LuanState luan,Object[] args) { | 18 @Override public Object call(LuanState luan,Object[] args) { |
21 LuanTable module = new LuanTable(); | 19 LuanTable module = new LuanTable(); |
22 try { | 20 try { |