diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-10 10:19:54 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-10 10:19:54 +0100 |
| commit | df059de37e776874cf1fbe303141764f1c8fc34e (patch) | |
| tree | e54559716865161449627732a9ca5dff43f6b36d /src/Fl_lock.cxx | |
| parent | e72fa007e7468a5c4e73533a93fa929650f94013 (diff) | |
"Public members Fl::awake_ring_*_ should be private" (#559) - cont'd
Diffstat (limited to 'src/Fl_lock.cxx')
| -rw-r--r-- | src/Fl_lock.cxx | 7 |
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 |
