File tree Expand file tree Collapse file tree
affinity/src/main/java/net/openhft/affinity/impl Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments