Using atomic types for global_status and global_debug would avoid having to lock and unlock mutexes for simple variable accesses. I know how they work in C++, but I have to investigate regarding C.
It would remove lots of bolierplate regarding audiosync_pause and similars.
Using atomic types for
global_status
andglobal_debug
would avoid having to lock and unlock mutexes for simple variable accesses. I know how they work in C++, but I have to investigate regarding C.It would remove lots of bolierplate regarding
audiosync_pause
and similars.Seems like C11 defines the
_Atomic
, butsig_atomic_t
is also available if I were to stick to C99. More info: https://en.cppreference.com/w/c/language/atomic. This is related to #54, then.