summaryrefslogtreecommitdiff
path: root/src/Fl_lock.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-07-01 20:14:08 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-07-01 20:14:08 +0000
commit526e94341d0a03bd99bbdbdeff7e446e437478c4 (patch)
tree1bb3b699e13ee2f94eb256f32712b41860906659 /src/Fl_lock.cxx
parent2d30a9e6fa5f7a328c942fe7b0b68908339c9076 (diff)
Some patches from Ori Berger to plug some resource leaks and use a
different WIN32 message for threading under Windows. (didn't include the cleanup or release changes) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_lock.cxx')
-rw-r--r--src/Fl_lock.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_lock.cxx b/src/Fl_lock.cxx
index 213dfb3a2..aae61b022 100644
--- a/src/Fl_lock.cxx
+++ b/src/Fl_lock.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_lock.cxx,v 1.13.2.2 2002/01/01 15:11:31 easysw Exp $"
+// "$Id: Fl_lock.cxx,v 1.13.2.3 2002/07/01 20:14:08 easysw Exp $"
//
// Multi-threading support code for the Fast Light Tool Kit (FLTK).
//
@@ -58,6 +58,7 @@
#ifdef WIN32
# include <windows.h>
# include <process.h>
+# include <FL/x.H>
// These pointers are in Fl_win32.cxx:
extern void (*fl_lock_function)();
@@ -117,7 +118,7 @@ void Fl::unlock() {
//
void Fl::awake(void* msg) {
- PostThreadMessage( main_thread, WM_USER, (WPARAM)msg, 0);
+ PostThreadMessage( main_thread, fl_wake_msg, (WPARAM)msg, 0);
}
////////////////////////////////////////////////////////////////
@@ -199,5 +200,5 @@ void Fl::awake(void* msg) {
#endif
//
-// End of "$Id: Fl_lock.cxx,v 1.13.2.2 2002/01/01 15:11:31 easysw Exp $".
+// End of "$Id: Fl_lock.cxx,v 1.13.2.3 2002/07/01 20:14:08 easysw Exp $".
//