vidify / old-audiosync

First implementation of the audio synchronization feature for Vidify, now obsolete
GNU Lesser General Public License v3.0
17 stars 3 forks source link

Using atomic types #55

Closed marioortizmanero closed 4 years ago

marioortizmanero commented 4 years ago

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.


Seems like C11 defines the _Atomic, but sig_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.

marioortizmanero commented 4 years ago

Closing issue, see: https://github.com/vidify/audiosync-rs/issues/2