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