[libbluray-devel] Synchronize lazy initialization

hpi1 git at videolan.org
Fri Mar 17 12:37:43 CET 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Mar 16 14:54:55 2017 +0200| [6844f69c864438790f753a6cf78efadcfc7ec7f6] | committer: hpi1

Synchronize lazy initialization

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=6844f69c864438790f753a6cf78efadcfc7ec7f6
---

 src/libbluray/bdj/java/org/videolan/CacheDir.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/org/videolan/CacheDir.java b/src/libbluray/bdj/java/org/videolan/CacheDir.java
index 817928e..950193d 100644
--- a/src/libbluray/bdj/java/org/videolan/CacheDir.java
+++ b/src/libbluray/bdj/java/org/videolan/CacheDir.java
@@ -30,7 +30,7 @@ class CacheDir {
         return LockFile.create(path + File.separator + "lock");
     }
 
-    private static void InitializeBaseDir() throws IOException {
+    private static synchronized void InitializeBaseDir() throws IOException {
         if (baseDir == null) {
             try {
                 File tmpDir = new File(System.getProperty("java.io.tmpdir"), "libbluray-bdj-cache");



More information about the libbluray-devel mailing list