Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 8182430

Browse files
authored
Merge pull request #27 from juanjux/fix/sync_dynload
Synchronize the uncompression/loading of the native lib
2 parents 8421d42 + dbb08e3 commit 8182430

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := "bblfsh-client"
22
organization := "org.bblfsh"
3-
version := "1.2.1"
3+
version := "1.2.2"
44

55
scalaVersion := "2.11.11"
66
val libuastVersion = "v1.2.0"

src/main/scala/org/bblfsh/client/libuast/Libuast.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object Libuast {
1010
var loaded = false
1111

1212
// Extract the native module from the jar
13-
private def loadBinaryLib(name: String) = {
13+
private def loadBinaryLib(name: String) = synchronized {
1414
val tempDir = System.getProperty("java.io.tmpdir")
1515
val ext = if (System.getProperty("os.name").toLowerCase == "mac os x") ".dylib" else ".so"
1616
val fullLibName = name + ext

0 commit comments

Comments
 (0)