Fix the boiler plate codes
[platform/framework/native/appfw.git] / src / base / runtime / FBaseRt_ThreadManager.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file        FBaseRt_ThreadManager.h
19  * @brief       This is the header file for the %_ThreadManager class.
20  *
21  * This file contains the declarations of the %_ThreadManager class.
22  */
23
24 #ifndef _FBASE_RT_INTERNAL_THREAD_MANAGER_H_
25 #define _FBASE_RT_INTERNAL_THREAD_MANAGER_H_
26
27 #include <stdio.h>
28 #include <pthread.h>
29
30 #include <FBaseResult.h>
31
32 namespace Tizen { namespace Base { namespace Runtime
33 {
34 class Thread;
35 class _ThreadImpl;
36 class _EventDispatcher;
37
38 class _ThreadManager
39 {
40 public:
41         _ThreadManager(void);
42
43         ~_ThreadManager(void);
44
45         static result Initialize(void);
46
47         static result Finalize(void);
48
49 private:
50         static Thread* __pMainThread;
51
52         friend class _ThreadImpl;
53 }; // _ThreadManager
54
55 } } } // Tizen::Base::Runtime
56
57 #endif // _FBASE_RT_INTERNAL_THREAD_MANAGER_H_