Skip to content

Commit 072b74b

Browse files
committed
FIx a typo in handling reserved threads.
1 parent 3848282 commit 072b74b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/vanilla/java/affinity/AffinityLock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public void bind(boolean wholeCore) {
231231
}
232232

233233
private boolean canReserve() {
234-
if (!reserved) return false;
234+
if (reserved) return false;
235235
if (assignedThread != null) {
236236
if (assignedThread.isAlive()) return false;
237237
LOGGER.severe("Lock assigned to " + assignedThread + " but this thread is dead.");

0 commit comments

Comments
 (0)