Changing static variables to volatile.

This commit is contained in:
Juan Narvaez 2013-03-19 09:12:56 -05:00
parent 4b3f1a919a
commit 274f11f73d
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ public class SnappyLoader
public static final String KEY_SNAPPY_USE_SYSTEMLIB = "org.xerial.snappy.use.systemlib";
public static final String KEY_SNAPPY_DISABLE_BUNDLED_LIBS = "org.xerial.snappy.disable.bundled.libs"; // Depreciated, but preserved for backward compatibility
private static boolean isLoaded = false;
private static Object api = null;
private static volatile boolean isLoaded = false;
private static volatile Object api = null;
/**
* Set the api instance.