summaryrefslogtreecommitdiff
path: root/examples/thread/thread.cc
diff options
context:
space:
mode:
authorMartin Schulze <teebaum@cvs.gnome.org>2004-02-13 16:53:20 +0000
committerMartin Schulze <teebaum@src.gnome.org>2004-02-13 16:53:20 +0000
commitef80e61d09a8e90b63a45e01be8bb445547fa90c (patch)
treef73cd994898099e8313a4d7123db4841d8595fe4 /examples/thread/thread.cc
parent4c3e21ed19baab081addfb7ecfe6859927005245 (diff)
downloadglibmm-ef80e61d09a8e90b63a45e01be8bb445547fa90c.tar.gz
documentation fixes and corrections in the comments reflecting the shift
2004-02-13 Martin Schulze <teebaum@cvs.gnome.org> * documentation fixes and corrections in the comments reflecting the shift to libsigc++ 2. * make all source files in example thread use libsigc++ 2 instead of libsigc++ 1.2.
Diffstat (limited to 'examples/thread/thread.cc')
-rw-r--r--examples/thread/thread.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/thread/thread.cc b/examples/thread/thread.cc
index aaddff92..cc4c8df2 100644
--- a/examples/thread/thread.cc
+++ b/examples/thread/thread.cc
@@ -1,7 +1,6 @@
#include <iostream>
#include <queue>
-#include <sigc++/class_slot.h>
#include <glibmm/random.h>
#include <glibmm/thread.h>
#include <glibmm/timer.h>
@@ -99,10 +98,10 @@ int main(int, char**)
MessageQueue queue;
Glib::Thread *const producer = Glib::Thread::create(
- SigC::slot_class(queue, &MessageQueue::producer), true);
+ sigc::mem_fun(queue, &MessageQueue::producer), true);
Glib::Thread *const consumer = Glib::Thread::create(
- SigC::slot_class(queue, &MessageQueue::consumer), true);
+ sigc::mem_fun(queue, &MessageQueue::consumer), true);
producer->join();
consumer->join();