[freenet-cvs] r18408 - trunk/freenet/src/freenet/support/io
nextgens at freenetproject.org
nextgens at freenetproject.org
Fri Mar 7 02:45:16 UTC 2008
Author: nextgens
Date: 2008-03-07 02:45:15 +0000 (Fri, 07 Mar 2008)
New Revision: 18408
Modified:
trunk/freenet/src/freenet/support/io/NativeThread.java
Log:
NativeThreads should be loaded *only* on linux: reinstate the old behaviour
Modified: trunk/freenet/src/freenet/support/io/NativeThread.java
===================================================================
--- trunk/freenet/src/freenet/support/io/NativeThread.java 2008-03-06 23:25:35 UTC (rev 18407)
+++ trunk/freenet/src/freenet/support/io/NativeThread.java 2008-03-07 02:45:15 UTC (rev 18408)
@@ -38,7 +38,8 @@
static {
Logger.minor(NativeThread.class, "Running init()");
- _loadNative = (File.pathSeparatorChar == ':') && (NodeStarter.extBuildNumber < 18);
+ // Loading the NativeThread library isn't useful on macos
+ _loadNative = ("Linux".equalsIgnoreCase(System.getProperty("os.name"))) && (NodeStarter.extBuildNumber > 18);
Logger.debug(NativeThread.class, "Run init(): should loadNative="+_loadNative);
if(_loadNative) {
//System.loadLibrary("NativeThread");
More information about the cvs
mailing list