comparison src/luan/modules/Thread.luan @ 1157:50879022f49d

failed attempt to remove Http.per_session_pages
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 05 Feb 2018 01:25:42 -0700
parents 772d16c89056
children 3ef883468fd0
comparison
equal deleted inserted replaced
1156:3839ecc130ea 1157:50879022f49d
35 35
36 function Thread.global_put(key,value) 36 function Thread.global_put(key,value)
37 return map.put(key,value) 37 return map.put(key,value)
38 end 38 end
39 39
40 --[[
41 function Thread.global_callable(name,timeout,fns)
42 local callable = ThreadLuan.globalCallable(name,timeout,fns)
43 local mt = {}
44 function mt.__index(_,key)
45 return function(...)
46 return callable.call(key,args)
47 end
48 end
49 local tbl = {}
50 set_metatable(tbl,mt)
51 return tbl
52 end
53 ]]
54
40 return Thread 55 return Thread