peter-lawrey/Java-Thread-Affinity — Issue #13: Incorrect JNA implementation on WINDOWS
Author: drelum
Created: 2012-01-29 23:04:12+00:00
State: open

It looks like PosixJNAAffinity should have:

public static final CLibrary INSTANCE = (CLibrary) Native.loadLibrary((Platform.isWindows() ? "kernel32" : "c"), CLibrary.class);

public int GetProcessAffinityMask(final int pid, final PointerType lpProcessAffinityMask, final PointerType lpSystemAffinityMask) throws LastErrorException;

public int SetProcessAffinityMask(final int pid, final DWORD lpProcessAffinityMask) throws LastErrorException;

I can provide a working version of it, if you allow me.

André