Add note on thread-safety of Variant and its const methods

This commit is contained in:
Stanislav Angelovič
2018-12-29 00:59:31 +01:00
committed by GitHub
parent d764afec93
commit 1def4e247a

View File

@ -40,6 +40,12 @@ namespace sdbus {
* @class Variant
*
* Variant can hold value of any D-Bus-supported type.
*
* Note: Even though thread-aware, Variant objects are not thread-safe.
* Some const methods are conceptually const, but not physically const,
* thus are not thread-safe. This is by design: normally, clients
* should process a single Variant object in a single thread at a time.
* Otherwise they need to take care of synchronization by themselves.
*
***********************************************/
class Variant