Panda3D
mouseWatcherBase.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file mouseWatcherBase.I
10  * @author rdb
11  * @date 2018-06-12
12  */
13 
14 /**
15  * Sorts all the regions in this group into pointer order.
16  */
17 INLINE void MouseWatcherBase::
19  LightMutexHolder holder(_lock);
20  if (!_sorted) {
21  do_sort_regions();
22  }
23 }
24 
25 /**
26  * Returns true if the group has already been sorted, false otherwise.
27  */
28 INLINE bool MouseWatcherBase::
29 is_sorted() const {
30  LightMutexHolder holder(_lock);
31  return _sorted;
32 }
void sort_regions()
Sorts all the regions in this group into pointer order.
Similar to MutexHolder, but for a light mutex.