L3tum / HardwareInformation

.NET Standard Cross-Platform Hardware Information Gatherer
MIT License
56 stars 11 forks source link

Fix threadAffinity setting on MacOS #11

Open L3tum opened 5 years ago

L3tum commented 5 years ago

MacOS does not expose a POSIX compliant thread affinity interface. While it's theoretically possible to make an adhoc wrapper around the OSX interface to more closely resemble the POSIX interface, the necessity to include the pthread_t instead of a "simple" pid makes it very hard. For now, since most systems are still homogenous, the call will not actually set the affinity