FLTK logo

[Library] r5747 - branches/branch-1.1/src

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[Library] r5747 - branches/branch-1.1/src fltk-dev Mar 20, 2007  
 
Author: matt
Date: 2007-03-20 04:42:36 -0500 (Tue, 20 Mar 2007)
New Revision: 5747
Log:
Fixed missing (and empty) unlock_ring and lock_ring for Unix builds without multithreading.

Modified:
   branches/branch-1.1/src/Fl_lock.cxx

Modified: branches/branch-1.1/src/Fl_lock.cxx
===================================================================
--- branches/branch-1.1/src/Fl_lock.cxx	2007-03-15 19:31:52 UTC (rev 5746)
+++ branches/branch-1.1/src/Fl_lock.cxx	2007-03-20 09:42:36 UTC (rev 5747)
@@ -75,7 +75,7 @@
 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,7 +344,14 @@
   pthread_mutex_lock(ring_mutex);
 }
 
+#else
 
+void unlock_ring() {
+}
+
+void lock_ring() {
+}
+
 #endif // WIN32
 
 //

Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.