forked from Kistler-Group/sdbus-cpp
Add note on thread-safety of Variant and its const methods
This commit is contained in:
committed by
GitHub
parent
d764afec93
commit
1def4e247a
@ -41,6 +41,12 @@ namespace sdbus {
|
|||||||
*
|
*
|
||||||
* Variant can hold value of any D-Bus-supported type.
|
* 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
|
class Variant
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user