diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-12-07 13:52:11 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:57 -0800 |
commit | b4d8ef709c6c44b04a15bb88bd8caeb0ddf06736 (patch) | |
tree | 3ae3e74d4dc1fd73e544c3cadc6f08b616eaa7f8 /mpm/include | |
parent | 06f6156f85cb11ff40e3abc0fa77eba388789a37 (diff) | |
download | uhd-b4d8ef709c6c44b04a15bb88bd8caeb0ddf06736.tar.gz uhd-b4d8ef709c6c44b04a15bb88bd8caeb0ddf06736.tar.bz2 uhd-b4d8ef709c6c44b04a15bb88bd8caeb0ddf06736.zip |
mg: Lock access to setters
Magnesium APIs are not thread-safe and can take a while to execute in
some cases. Adding a mutex to setters avoids invalid states of the
hardware from API calls.
Note that the lock applies to one block at a time. With the
two-radios-per-dboard approach, two locks need to be applied and race
conditions are still possible.
Reviewed-By: Trung Tran <trung.tran@ettus.com>
Diffstat (limited to 'mpm/include')
0 files changed, 0 insertions, 0 deletions