]> git.zerfleddert.de Git - proxmark3-svn/commit - client/comms.c
osx: disable app-nap during serial comm (#687)
authorAntiCat <contiki@anticat.ch>
Mon, 8 Oct 2018 05:15:29 +0000 (07:15 +0200)
committerpwpiwi <pwpiwi@users.noreply.github.com>
Mon, 8 Oct 2018 05:15:29 +0000 (07:15 +0200)
commit2a537311063d3e49479ff4cc8b94287a10c37266
treefc75470651421f94e1ffe00cef9ef5479a40ce1e
parent70b2fc0abdb9efe03c3eb29c8b9d661ba4c3c90e
osx: disable app-nap during serial comm (#687)

Apple introduced app-nap with OS X 10.10. This feature
saves power by throttling apps running in background.
However, it also less accurate timers in systemcalls. In
our case a 30ms select timeout would take up to 10s.

This patch uses an API also added with 10.10 to disable
app-nap as long as the serial port is polled.
CHANGELOG.md
client/Makefile
client/comms.c
client/util_darwin.h [new file with mode: 0644]
client/util_darwin.m [new file with mode: 0644]
Impressum, Datenschutz