Dali 3D User Interface Engine
vsync-notifier.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_VSYNC_NOTIFIER_H__
2 #define __DALI_INTERNAL_VSYNC_NOTIFIER_H__
3 
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20 
21 // EXTERNAL INCLUDES
22 #include <pthread.h>
23 
24 namespace Dali
25 {
26 
27 namespace Integration
28 {
29 
30 class Core;
31 class PlatformAbstraction;
32 
33 } // namespace Integration
34 
35 namespace Internal
36 {
37 
38 namespace Adaptor
39 {
40 
41 class VSyncMonitorInterface;
42 class ThreadSynchronization;
43 class EnvironmentOptions;
44 class AdaptorInternalServices;
45 
51 {
52 public:
53 
62  AdaptorInternalServices& adaptorInterfaces,
63  const EnvironmentOptions& environmentOptions);
64 
69 
73  void Start();
74 
78  void Stop();
79 
80 private:
81 
86  void Run();
87 
92  static inline void* InternalThreadEntryFunc( void* This )
93  {
94  ( static_cast<VSyncNotifier*>( This ) )->Run();
95  return NULL;
96  }
97 
98 private:
99 
103  pthread_t* mThread;
106 
107 }; // class VSyncNotifier
108 
109 } // namespace Adaptor
110 
111 } // namespace Internal
112 
113 } // namespace Dali
114 
115 #endif // __DALI_INTERNAL_VSYNC_NOTIFIER_H__
Dali Docs Home
Read more about Dali