What are the most important parts of C++ for coding plug-ins? (in: DSP and Plugin Devel…)

By: keyman_sam
21 Sep 03:37

Be aware of ‘realtime safe’ code in realtime threads. Look up lock-free programming.

Avoid locks, malloc, logging, anything of that sort in a realtime thread. Use atomics wherever appropriate. The principles are the same across the programming languages, the execution and syntax is different.

Cpp specific: lookup RAII, be aware of rule of zero, rule of seven. Get comfortable with templates and debugging using gdb, run tools like asan, tsan. Stick with modern cpp (avoid c++11). Go for c++1…

Go to this post

Go to first unread post in this topic

Read more here: Source link