Skip to content
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

Merged
merged 2 commits into from
Jun 21, 2021
Merged

compatibility with JNA 5.8.0 #78

merged 2 commits into from
Jun 21, 2021

Conversation

JerryShea
Copy link
Contributor

@JerryShea JerryShea commented Jun 21, 2021

3rd party bom 3.19.8


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;
Copy link
Contributor Author

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);
Copy link
Contributor Author

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();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

de-deprecate

@JerryShea JerryShea changed the title Jna 5.8.0 compatibility with JNA 5.8.0 Jun 21, 2021
@JerryShea JerryShea merged commit 36d5657 into develop Jun 21, 2021
@JerryShea JerryShea deleted the jna_5_8_0 branch June 21, 2021 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants