Skip to content

Commit 4a9a381

Browse files
committed
Comment why i > 0
1 parent 1f706bc commit 4a9a381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ public static AffinityLock acquireCore(boolean bind) {
114114
private static AffinityLock acquireLock(boolean bind, int cpuId, AffinityStrategy... strategies) {
115115
synchronized (AffinityLock.class) {
116116
for (AffinityStrategy strategy : strategies) {
117-
// consider all processors except core 0 which is usually used by the OS.
118-
// if you have only one core, this library is not approriate in any case.
117+
// consider all processors except cpu 0 which is usually used by the OS.
118+
// if you have only one core, this library is not appropriate in any case.
119119
for (int i = PROCESSORS - 1; i > 0; i--) {
120120
AffinityLock al = LOCKS[i];
121121
if (al.canReserve() && strategy.matches(cpuId, i)) {

0 commit comments

Comments
 (0)