Moved thread control functionality into a separate folder & added threading mode... 95/50195/14
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 29 Oct 2015 10:23:44 +0000 (10:23 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 4 Nov 2015 11:23:15 +0000 (11:23 +0000)
commit6acebca1162705c4a5eabc8b1faa7668112fabd1
tree94f089654c125719cab401efc720d1f39adbc54d
parent5c323d6b4a685b8ea6d8d2b842a5f4941adbd993
Moved thread control functionality into a separate folder & added threading mode environment variable

Use DALI_THREADING_MODE to control which threading mode to use:
 - 0: SeparateUpdateRender: Event, VSync, Update & Render ALL on separate threads.
 - 1: SingleThreaded: ALL functionality on the SAME thread.
 - 2: CombinedUpdateRender: Three threads: Event, VSync & Combined Update/Render

Only Mode 0 supported in this patch, modes 1 & 2 activated in later patches.

Change-Id: Ib45e7f5305ae56e9bd79def81a61503998e34824
23 files changed:
adaptors/base/environment-options.cpp
adaptors/base/environment-options.h
adaptors/base/environment-variables.h
adaptors/base/file.list
adaptors/base/separate-update-render/frame-time.cpp [moved from adaptors/base/frame-time.cpp with 100% similarity]
adaptors/base/separate-update-render/frame-time.h [moved from adaptors/base/frame-time.h with 100% similarity]
adaptors/base/separate-update-render/render-request.cpp [moved from adaptors/base/render-request.cpp with 100% similarity]
adaptors/base/separate-update-render/render-request.h [moved from adaptors/base/render-request.h with 100% similarity]
adaptors/base/separate-update-render/render-thread.cpp [moved from adaptors/base/render-thread.cpp with 98% similarity]
adaptors/base/separate-update-render/render-thread.h [moved from adaptors/base/render-thread.h with 98% similarity]
adaptors/base/separate-update-render/separate-update-render-controller.cpp [new file with mode: 0644]
adaptors/base/separate-update-render/separate-update-render-controller.h [new file with mode: 0644]
adaptors/base/separate-update-render/thread-synchronization-debug.h [moved from adaptors/base/thread-synchronization-debug.h with 100% similarity]
adaptors/base/separate-update-render/thread-synchronization.cpp [moved from adaptors/base/thread-synchronization.cpp with 99% similarity]
adaptors/base/separate-update-render/thread-synchronization.h [moved from adaptors/base/thread-synchronization.h with 99% similarity]
adaptors/base/separate-update-render/update-thread.cpp [moved from adaptors/base/update-thread.cpp with 98% similarity]
adaptors/base/separate-update-render/update-thread.h [moved from adaptors/base/update-thread.h with 100% similarity]
adaptors/base/separate-update-render/vsync-notifier.cpp [moved from adaptors/base/vsync-notifier.cpp with 98% similarity]
adaptors/base/separate-update-render/vsync-notifier.h [moved from adaptors/base/vsync-notifier.h with 100% similarity]
adaptors/base/thread-controller-interface.h [new file with mode: 0644]
adaptors/base/thread-controller.cpp
adaptors/base/thread-controller.h
adaptors/base/threading-mode.h [new file with mode: 0644]