Skip to content

Commit 8640e7d

Browse files
committed
Prepare for release 3.0a (alpha) of collections.
1 parent f6499cf commit 8640e7d

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

affinity/src/main/java/net/openhft/affinity/impl/PosixJNAAffinity.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,7 @@ public void setAffinity(final long affinity) {
7676
throw new IllegalStateException("sched_setaffinity((" + Long.SIZE / 8 + ") , &(" + affinity + ") ) return " + ret);
7777
}
7878
} catch (LastErrorException e) {
79-
if (e.getErrorCode() != 22)
80-
throw new IllegalStateException("sched_getaffinity((" + Long.SIZE / 8 + ") , &(" + affinity + ") ) errorNo=" + e.getErrorCode(), e);
81-
}
82-
try {
83-
final int ret = lib.sched_setaffinity(0, Integer.SIZE / 8, new IntByReference((int) affinity));
84-
if (ret < 0) {
85-
throw new IllegalStateException("sched_setaffinity((" + Integer.SIZE / 8 + ") , &(" + affinity + ") ) return " + ret);
86-
}
87-
} catch (LastErrorException e) {
88-
throw new IllegalStateException("sched_getaffinity((" + Integer.SIZE / 8 + ") , &(" + affinity + ") ) errorNo=" + e.getErrorCode(), e);
79+
throw new IllegalStateException("sched_getaffinity((" + Long.SIZE / 8 + ") , &(" + affinity + ") ) errorNo=" + e.getErrorCode(), e);
8980
}
9081
}
9182

0 commit comments

Comments
 (0)