User Tools

Site Tools


for_developers:thread_safety

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
for_developers:thread_safety [2026/04/12 16:50] ursgraffor_developers:thread_safety [2026/04/12 16:50] (current) – [The solution] ursgraf
Line 34: Line 34:
  
  
-===== The solution =====+===== The Solution =====
  
 The Gain block is now implemented thread safe by using the class [[https://en.cppreference.com/w/cpp/thread/lock_guard|lock_guard]] and a [[https://en.cppreference.com/w/cpp/thread/mutex|mutex]]. The code snipped below shows the **setGain()** method as an example. The Gain block is now implemented thread safe by using the class [[https://en.cppreference.com/w/cpp/thread/lock_guard|lock_guard]] and a [[https://en.cppreference.com/w/cpp/thread/mutex|mutex]]. The code snipped below shows the **setGain()** method as an example.
for_developers/thread_safety.1776005408.txt.gz · Last modified: by ursgraf