Update of /var/cvs/src/org/mmbase/module/core
In directory james.mmbase.org:/tmp/cvs-serv4409
Modified Files:
MMBaseContext.java
Log Message:
a les obfuscted way to ensure that only one threadgroup is created
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/module/core
Index: MMBaseContext.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/module/core/MMBaseContext.java,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -b -r1.68 -r1.69
--- MMBaseContext.java 12 Sep 2008 13:06:17 -0000 1.68
+++ MMBaseContext.java 12 Sep 2008 13:08:58 -0000 1.69
@@ -27,7 +27,7 @@
* @author Daniel Ockeloen
* @author David van Zeventer
* @author Jaco de Groot
- * @version $Id: MMBaseContext.java,v 1.68 2008/09/12 13:06:17 michiel Exp $
+ * @version $Id: MMBaseContext.java,v 1.69 2008/09/12 13:08:58 michiel Exp $
*/
public class MMBaseContext {
private static final Logger log =
Logging.getLoggerInstance(MMBaseContext.class);
@@ -40,8 +40,7 @@
private static String htmlRootUrlPath = "/";
private static boolean htmlRootUrlPathInitialized = false;
private static String outputFile;
- private static ThreadGroup threadGroup;
-
+ private static final ThreadGroup threadGroup = new
ThreadGroup(org.mmbase.Version.get());// + "" + new Date();
/**
* Initialize MMBase using a <code>ServletContext</code>. This method will
* check the servlet configuration for context parameters mmbase.outputfile
@@ -140,15 +139,8 @@
* @since MMBase-1.8
*/
public static ThreadGroup getThreadGroup() {
- synchronized (org.mmbase.Version.class) {
- if (threadGroup == null) {
- String groupName = org.mmbase.Version.get();// + "" + new
Date();
- log.service("Creating threadGroup: " + groupName);
- threadGroup = new ThreadGroup(groupName);
- }
return threadGroup;
}
- }
/**
* Starts a daemon thread using the MMBase thread group.
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs