summaryrefslogtreecommitdiff
path: root/test/threads.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2007-03-20 10:41:14 +0000
committerMatthias Melcher <fltk@matthiasm.com>2007-03-20 10:41:14 +0000
commit18f2016b1f743068cd3d4bb9740845c2d55af3f3 (patch)
treebd0e16fdb0e630d2e7ab8d6846dfba423dadd47b /test/threads.cxx
parent27568cfa1c948ba536e03519372b38412adec756 (diff)
Removed the Fl::set_awake_cb API and documented the Fl::awake(function, data) API.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5749 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/threads.cxx')
-rw-r--r--test/threads.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/threads.cxx b/test/threads.cxx
index 2c1424e42..15e8165ca 100644
--- a/test/threads.cxx
+++ b/test/threads.cxx
@@ -111,12 +111,6 @@ void* prime_func(void* p)
return 0;
}
-void message_cb(void *m) {
- if (m == (void *)browser1) putchar('1');
- else putchar('2');
- fflush(stdout);
-}
-
int main(int argc, char **argv)
{
Fl_Window* w = new Fl_Window(200, 200, "Single Thread");
@@ -141,11 +135,6 @@ int main(int argc, char **argv)
// when it is safe to do so...
Fl::lock();
- // Register a callback for Fl::awake() messages. This allows
- // you to get all thread messages even if you are in another
- // run loop (say, with a modal dialog...)
- Fl::set_awake_cb(message_cb);
-
// Start threads...
// One thread displaying in one browser