diff src/luan/modules/ThreadLuan.java @ 1159:3ef883468fd0

remove Http.per_session_pages fix clone closure bug replace Thread.global with Thread.global_callable()
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 05 Feb 2018 12:37:59 -0700
parents 50879022f49d
children 7ef40e1923b7
line wrap: on
line diff
--- a/src/luan/modules/ThreadLuan.java	Mon Feb 05 10:04:07 2018 -0700
+++ b/src/luan/modules/ThreadLuan.java	Mon Feb 05 12:37:59 2018 -0700
@@ -72,7 +72,7 @@
 		luan.onClose(c);
 	}
 
-
+/*
 	public static class GlobalMap {
 
 		private static class Value {
@@ -108,14 +108,13 @@
 			return val==null ? null : val.v;
 		}
 	}
-
+*/
 
 	public static void sleep(long millis) throws InterruptedException {
 		Thread.sleep(millis);
 	}
 
 
-/*
 	private static boolean isPrimitive(Object v) {
 		if( v instanceof Object[] ) {
 			Object[] a = (Object[])v;
@@ -176,5 +175,9 @@
 		callable.expires = System.currentTimeMillis() + timeout;
 		return callable;
 	}
-*/
+
+	public static synchronized void removeGlobalCallable(String name) {
+		callableMap.remove(name);
+	}
+
 }