# Are GetParameter methods lock-free under the hood?

**URL:** <https://qa.fmod.com/t/are-getparameter-methods-lock-free-under-the-hood/19988>\
**Category:** FMOD Engine\
**Created:** [March 19, 2023, 8:17pm UTC](https://qa.fmod.com/t/are-getparameter-methods-lock-free-under-the-hood/19988 "2023-03-19T20:17:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skylar1992](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/skylar1992/32/3456_2.png) [@skylar1992](https://qa.fmod.com/u/skylar1992)\
**Post date:** [March 19, 2023, 8:17pm UTC](https://qa.fmod.com/t/are-getparameter-methods-lock-free-under-the-hood/19988/1 "2023-03-19T20:17:15Z")

</div>

For both get parameter from DSP (eg: `DSP::getParameterInt`) and get studio event parameter (eg: `Studio::EventInstance::getParameterByName`)

If they are not lock-free, is it recommended to use them sparsely?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [March 22, 2023, 4:20am UTC](https://qa.fmod.com/t/are-getparameter-methods-lock-free-under-the-hood/19988/2 "2023-03-22T04:20:24Z")

</div>

Hi,

The Getters in the Core API are mostly lock-free, this includes DSP getters. For Studio API all the getters are lock-free. This is done by an async command queue and shadow data system. If you would like to read more about this it can be found under [FMOD Studio | White Papers - Studio API Threads](https://fmod.com/docs/2.02/api/white-papers-studio-threads.html) and [FMOD Studio | White Papers - None Blocking Sound Creation](https://fmod.com/docs/2.02/api/white-papers-non-blocking-sound-creation.html)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![skylar1992](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/skylar1992/32/3456_2.png) [@skylar1992](https://qa.fmod.com/u/skylar1992)\
**Post date:** [March 24, 2023, 4:45am UTC](https://qa.fmod.com/t/are-getparameter-methods-lock-free-under-the-hood/19988/3 "2023-03-24T04:45:55Z")

</div>

Great to hear! Thanks for the answer!
