andrewrk / andrewrk/andrewkelley.me
blog idea: comparing platform APIs
- Lingua principale
- HTML
- Stelle
- 24
- Fork
- 5
- Merge medio
- 9m
- PR unite (30g)
- 1
Descrizione
- OSX pthread_cond_timedwait only supports absolute calendar time. Workaround using kqueue: http://stackoverflow.com/questions/11338899/are-there-any-well-behaved-posix-interval-timers/31174803#31174803 meanwhile, you can `pthread_condattr_setclock` `CLOCK_MONOTONIC` on linux.
- Windows CreateThread does not list the possible errors that could be returned: https://msdn.microsoft.com/en-us/library/windows/desktop/ms682453(v=vs.85).aspx compare that to the POSIX man page: http://man7.org/linux/man-pages/man3/pthread_create.3.html
- Windows: Printing to stdout/stderr in a .dll doesn't work
- Windows: functions that have to do with critical sections and conditions cannot fail. That's nice.
- Windows: InitOnceExecOnce: returns "error: operation completed successfully" https://msdn.microsoft.com/en-us/library/windows/desktop/ms683493(v=vs.85).aspx never got this working. I had to use `InitOnceBeginInitialize` and `InitOnceComplete` to work around the issue.
- Linux: the inotify man page is an example of thorough and useful documentation: http://man7.org/linux/man-pages/man7/inotify.7.html
- WASAPI does not perform sample rate conversion in shared device mode; meanwhile ALSA, PulseAudio, and CoreAudio do.
- WASAPI DevicePhysicalSpeakers is just wrong. it has no information. had to use isFormatSupported
- COM API is a disaster. super hard to just use C too: https://msdn.microsoft.com/en-us/library/windows/desktop/dd371417(v=vs.85).aspx
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.