From 526e94341d0a03bd99bbdbdeff7e446e437478c4 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 1 Jul 2002 20:14:08 +0000 Subject: 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 --- src/Fl_lock.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Fl_lock.cxx') 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 # include +# include // 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 $". // -- cgit v1.2.3