Skip to content

Commit ebb1422

Browse files
committed
_imp.acquire_lock: acquire the lock interruptibly
1 parent b3e243f commit ebb1422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ImpModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public abstract static class AcquireLock extends PythonBuiltinNode {
213213
public Object run(@Cached GilNode gil) {
214214
gil.release(true);
215215
try {
216-
TruffleSafepoint.setBlockedThreadInterruptible(this, ReentrantLock::lock, getContext().getImportLock());
216+
TruffleSafepoint.setBlockedThreadInterruptible(this, ReentrantLock::lockInterruptibly, getContext().getImportLock());
217217
} finally {
218218
gil.acquire();
219219
}

0 commit comments

Comments
 (0)