Home Artists Posts Import Register

Content

 I started working on effect modulation and got sidetracked again debugging a crash related to data synchronization across threads. In the process I ended up creating a new set of classes for performing lock-free synchronization of audio objects which should be a lot easier and safer to use than what I was doing before, and more versatile. I added these classes to my work-in-progress DSP library here:

https://github.com/colugomusic/snd/tree/master/include/snd/threads

It's not very easy to encapsulate the concepts of lock-free programming into reusable classes because usually specific problems require specific solutions, so these classes are kind of generic, and it's possible to use them incorrectly. Going forward I hope this will at least reduce the amount of time spent debugging crashes and trying to ensure data is being synchronized properly. I updated a lot of code to use these new classes and they seem to be working well so far.

Comments

No comments found for this post.