We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3848282 commit 072b74bCopy full SHA for 072b74b
1 file changed
src/main/java/vanilla/java/affinity/AffinityLock.java
@@ -231,7 +231,7 @@ public void bind(boolean wholeCore) {
231
}
232
233
private boolean canReserve() {
234
- if (!reserved) return false;
+ if (reserved) return false;
235
if (assignedThread != null) {
236
if (assignedThread.isAlive()) return false;
237
LOGGER.severe("Lock assigned to " + assignedThread + " but this thread is dead.");
0 commit comments