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

Commit e8d7128

Browse files
committed
put back in lock
1 parent a5b72cb commit e8d7128

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clcache.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def computeKey(self, compilerBinary, commandLine):
146146
return h.hexdigest()
147147

148148
def hasEntry(self, key):
149-
return os.path.exists(self.cachedObjectName(key))
149+
with self.lock:
150+
return os.path.exists(self.cachedObjectName(key))
150151

151152
def setEntry(self, key, objectFileName, compilerOutput):
152153
with self.lock:

0 commit comments

Comments
 (0)