Add operator address overload to Synchronized::Handle
authorFrancisco Santos <f1.santos@samsung.com>
Mon, 5 Jun 2017 14:59:49 +0000 (15:59 +0100)
committerFrancisco Santos <eggzcape@gmail.com>
Wed, 15 Nov 2017 09:10:11 +0000 (05:10 -0400)
Change-Id: Id21cb89f713c5936a4a8c2d29b22a99171868616

dali/graphics/utility/utility-synchronized.h

index 5564672..3cdcf3a 100644 (file)
@@ -85,6 +85,16 @@ public:
       return mObjectRef;
     }
 
+    T* operator&()
+    {
+      return &mObjectRef;
+    }
+
+    const T* operator&() const
+    {
+      return &mObjectRef;
+    }
+
   private:
     friend Synchronized; //< Allow Synchronized to create a handle
     Handle( std::mutex& mutex, T& object )