mirror of
https://github.com/fltk/fltk.git
synced 2026-05-24 00:06:20 +08:00
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
This commit is contained in:
+8
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user