From 737bab3b9237ee0b3f3c9fa253c5138559460598 Mon Sep 17 00:00:00 2001 From: Gabriel Hare Date: Wed, 16 Jul 2014 00:18:02 -0700 Subject: [PATCH] Clarifying shared_object comments. --- autowiring/shared_object.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autowiring/shared_object.h b/autowiring/shared_object.h index 3a73944c5..490e73b40 100644 --- a/autowiring/shared_object.h +++ b/autowiring/shared_object.h @@ -48,7 +48,8 @@ class shared_object { /// ///To copy the atomic_object referenced by source use: /// shared_object target(*unlock_object(source)); - /// + ///This method does NOT copy the atomic_object referenced by source. + /// shared_object(const shared_object& source): m_share(source.m_share) {} @@ -65,6 +66,7 @@ class shared_object { /// ///This method is equivalent to: /// target = *unlock_object(source); + ///This method does NOT redirect the atomic_object reference to the reference of source. /// shared_object& operator = (const shared_object& source) { *m_share = *source.m_share; @@ -92,7 +94,7 @@ class shared_object { } /// - ///Atomic copy of this location to argument location, only if this has location. + ///Atomic copy of target to this object, only if initialized() == false. /// ///True if the object was not assigned default values bool initialized(object& target) {