summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2007-03-20 09:42:36 +0000
committerMatthias Melcher <fltk@matthiasm.com>2007-03-20 09:42:36 +0000
commitcae6dd02b26be05961a57339ebbe45146e32044c (patch)
tree3e09e2e5de446c7dc56bad9a927a9843b7041eb3 /src
parent3d08842222479a30ff87ed98ec926008a5608001 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_lock.cxx9
1 files changed, 8 insertions, 1 deletions
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