Mercurial Hosting > luan
comparison src/luan/tools/WebServlet.java @ 126:0149bdf98fd8
add ThreadLib
git-svn-id: https://luan-java.googlecode.com/svn/trunk@127 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 06 Jun 2014 14:16:38 +0000 |
parents | f537ff5e511d |
children | 3119326260ea |
comparison
equal
deleted
inserted
replaced
125:0cd559a16758 | 126:0149bdf98fd8 |
---|---|
9 import luan.LuanState; | 9 import luan.LuanState; |
10 import luan.LuanException; | 10 import luan.LuanException; |
11 import luan.LuanRuntimeException; | 11 import luan.LuanRuntimeException; |
12 import luan.LuanFunction; | 12 import luan.LuanFunction; |
13 import luan.LuanElement; | 13 import luan.LuanElement; |
14 import luan.DeepCloner; | |
14 import luan.interp.LuanCompiler; | 15 import luan.interp.LuanCompiler; |
15 import luan.lib.HttpLib; | 16 import luan.lib.HttpLib; |
16 import luan.lib.BasicLib; | 17 import luan.lib.BasicLib; |
17 import luan.lib.PackageLib; | 18 import luan.lib.PackageLib; |
18 import luan.lib.MathLib; | 19 import luan.lib.MathLib; |
44 if( luanState == null ) { | 45 if( luanState == null ) { |
45 luanState = newLuanState(); | 46 luanState = newLuanState(); |
46 HttpLib.load(luanState); | 47 HttpLib.load(luanState); |
47 } | 48 } |
48 } | 49 } |
49 LuanState luan = luanState.deepClone(); | 50 LuanState luan = new DeepCloner().deepClone(luanState); |
50 service(request,response,luan); | 51 service(request,response,luan); |
51 } catch(LuanException e) { | 52 } catch(LuanException e) { |
52 throw new LuanRuntimeException(e); | 53 throw new LuanRuntimeException(e); |
53 } | 54 } |
54 } | 55 } |