From cae6dd02b26be05961a57339ebbe45146e32044c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 20 Mar 2007 09:42:36 +0000 Subject: [PATCH] Fixed missing (and empty) unlock_ring and lock_ring for Unix builds without multithreading. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_lock.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Fl_lock.cxx b/src/Fl_lock.cxx index 88b93c87e..612d351b0 100644 --- a/src/Fl_lock.cxx +++ b/src/Fl_lock.cxx @@ -75,7 +75,7 @@ void **Fl::awake_data_; int Fl::awake_ring_size_; int Fl::awake_ring_head_; int Fl::awake_ring_tail_; -const int AWAKE_RING_SIZE = 1024; +static const int AWAKE_RING_SIZE = 1024; static void lock_ring(); static void unlock_ring(); @@ -344,6 +344,13 @@ void lock_ring() { pthread_mutex_lock(ring_mutex); } +#else + +void unlock_ring() { +} + +void lock_ring() { +} #endif // WIN32