Skip to content

Commit e9306e7

Browse files
author
Rob Austin
committed
introduced - LockCheck.updateCpu(al.cpuId());
1 parent 4a8aaa0 commit e9306e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

affinity/src/main/java/net/openhft/affinity/LockInventory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public final synchronized AffinityLock acquireLock(boolean bind, int cpuId, Affi
8888
AffinityLock al = logicalCoreLocks[i];
8989
if (al.canReserve() && (cpuId < 0 || strategy.matches(cpuId, al.cpuId()))) {
9090
al.assignCurrentThread(bind, false);
91-
// LockCheck.updateCpu(al.cpuId());
91+
LockCheck.updateCpu(al.cpuId());
9292
return al;
9393
}
9494
}
@@ -109,7 +109,7 @@ public final synchronized AffinityLock acquireCore(boolean bind, int cpuId, Affi
109109

110110
final AffinityLock al = als[0];
111111
al.assignCurrentThread(bind, true);
112-
// LockCheck.updateCpu(al.cpuId());
112+
LockCheck.updateCpu(al.cpuId());
113113
return al;
114114
}
115115
}

0 commit comments

Comments
 (0)