Add environment variable for multisampling
[platform/core/uifw/dali-adaptor.git] / adaptors / common / vsync-monitor.h
index df148c5..f990d7b 100644 (file)
@@ -55,7 +55,13 @@ public:
    * Set the use hardware flag
    * @param[in] useHardware The new state for the use hardware flag.
    */
-  void SetUseHardware( bool useHardware );
+  void SetUseHardwareVSync( bool useHardware );
+
+  /**
+   * Set whether the vsync hardware is available.
+   * (This is public to allow callback method to work...)
+   */
+  void SetHardwareVSyncAvailable(bool available);
 
 private: // From Dali::Internal::Adaptor::VSyncMonitorInterface
 
@@ -83,8 +89,9 @@ private:
 
   int       mFileDescriptor;  ///< DRM dev node file descriptor
   drmVBlank mVBlankInfo;
-  bool      mUseHardware;     ///< Hardware VSyncs available flag
-
+  // NOTE cannot use booleans as these are used from multiple threads, must use variable with machine word size for atomic read/write
+  unsigned int mUseHardwareVSync; ///< Whether to use hardware vsync
+  unsigned int mHardwareVSyncAvailable; ///< Whether hardware vsync is available
 };
 
 } // namespace Adaptor