summaryrefslogtreecommitdiff
path: root/src/Fl_lock.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_lock.cxx')
-rw-r--r--src/Fl_lock.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Fl_lock.cxx b/src/Fl_lock.cxx
index 3aea98d95..fdf045be9 100644
--- a/src/Fl_lock.cxx
+++ b/src/Fl_lock.cxx
@@ -201,8 +201,11 @@ void Fl::unlock() {
#ifndef FL_DOXYGEN
-bool Fl::equal_awake_ring_ends() {
- return awake_ring_head_ == Fl::awake_ring_tail_;
+bool Fl_System_Driver::awake_ring_empty() {
+ Fl::system_driver()->lock_ring();
+ bool retval = (Fl::awake_ring_head_ == Fl::awake_ring_tail_);
+ Fl::system_driver()->unlock_ring();
+ return retval;
}
#endif // FL_DOXYGEN