SF.net SVN: jython:[7194] trunk/jython/src/org/python/core/PySystemState. java
[email protected] Sat, 05 Feb 2011 01:23:12 +0000
| Newsgroups | gmane.comp.lang.jython.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7194
http://jython.svn.sourceforge.net/jython/?rev=7194&view=rev
Author: pjenvey
Date: 2011-02-05 01:23:12 +0000 (Sat, 05 Feb 2011)
Log Message:
-----------
remove the unused startCleanupThread
Modified Paths:
--------------
trunk/jython/src/org/python/core/PySystemState.java
Modified: trunk/jython/src/org/python/core/PySystemState.java
===================================================================
--- trunk/jython/src/org/python/core/PySystemState.java 2011-02-03 21:56:23 UTC (rev 7193)
+++ trunk/jython/src/org/python/core/PySystemState.java 2011-02-05 01:23:12 UTC (rev 7194)
@@ -157,9 +157,6 @@
private final PySystemStateCloser closer;
private static final ReferenceQueue systemStateQueue = new ReferenceQueue<PySystemState>();
private static final ConcurrentMap<WeakReference<PySystemState>, PySystemStateCloser> sysClosers = Generic.concurrentMap();
-// static {
-// startCleanupThread();
-// }
public PySystemState() {
initialize();
@@ -1301,25 +1298,6 @@
closer.cleanup();
}
- private static void startCleanupThread() {
- Thread cleanupThread = new Thread(new Runnable() {
- public void run() {
- while (true) {
- try {
- Reference<PySystemStateCloser> ref = systemStateQueue.remove();
- PySystemStateCloser closer = sysClosers.get(ref);
- closer.cleanup();
- sysClosers.remove(ref);
- } catch (InterruptedException ex) {
- break;
- }
- }
- }
- });
- cleanupThread.setDaemon(true);
- cleanupThread.start();
- }
-
private static class PySystemStateCloser {
private final Set<Callable> resourceClosers = new LinkedHashSet<Callable>();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb