-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compatibility with JNA 5.8.0 #78
Conversation
|
||
int GetProcessAffinityMask(final int pid, final PointerType lpProcessAffinityMask, final PointerType lpSystemAffinityMask) throws LastErrorException; | ||
int GetProcessAffinityMask(final WinNT.HANDLE pid, final PointerType lpProcessAffinityMask, final PointerType lpSystemAffinityMask) throws LastErrorException; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the fix to stop the exceptions
@@ -72,8 +72,7 @@ public int getThreadId() { | |||
} | |||
|
|||
interface CLibrary extends Library { | |||
CLibrary INSTANCE = (CLibrary) | |||
Native.loadLibrary("c", CLibrary.class); | |||
CLibrary INSTANCE = Native.load("c", CLibrary.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this and above are de-deprecations
@@ -45,7 +45,7 @@ public IAffinity getImpl() { | |||
public void testGettid() { | |||
System.out.println("pid=" + getImpl().getProcessId()); | |||
System.out.println("tid=" + getImpl().getThreadId()); | |||
AffinitySupport.setThreadId(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
de-deprecate
3rd party bom 3.19.8