Dali 3D User Interface Engine
mutex.h
Go to the documentation of this file.
1 #ifndef __DALI_MUTEX_H__
2 #define __DALI_MUTEX_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 // INTERNAL INCLUDES
23 
27 namespace Dali
28 {
29 
34 {
35 public:
36 
40  Mutex();
41 
45  ~Mutex();
46 
51  bool IsLocked();
52 
53 public:
54 
60  class ScopedLock
61  {
62  public:
63 
68  ScopedLock( Mutex& mutex );
69 
73  ~ScopedLock();
74 
75  private:
77  };
78 
79 private:
80 
82  Mutex( const Mutex& );
83  const Mutex& operator= ( const Mutex& );
84 
85  struct MutexImpl;
87 
88 };
89 
90 } // namespace Dali
91 
92 #endif // __DALI_MUTEX_H__
Dali Docs Home
Read more about Dali