peter-lawrey/Java-Thread-Affinity — pull request #5 by cheremin (2011-12-30 11:37:13+00:00)
Title: Refactoring and cleanup

1. Refactoring of affinity impl: separate functionality of affinity management from high resolution timer. It seems for me what it is quite important to keep them distinct. It is not only different in meaning, it has quite different requirements for implementation. While HRT require lowest possible overhead for it's system calls, and for now can be implemented by JNI only (though it should be verified), affinity management does not require such low overhead.

So my idea is to make JNA implementation the default one for affinity calls, and left JNI only for rdts(). This will easier build and use process of library for most users, since, from my point of view, most users does not need rdts().

2. Added/refactored unit-tests.

3. Add LastErrorException in JNA stubs