How to properly exit a thread?
- From: "Xiangfei Jia" <xjianz gmail com>
- To: gtkmm-list gnome org
- Subject: How to properly exit a thread?
- Date: Sun, 14 May 2006 17:10:33 +1200
I created a thread like this:
Glib::Thread *const read = Glib::Thread::create(sigc::mem_fun(node, &FrameNode::read_new_data), false);
Sometimes, when I exit from my program I got this error message:
GThread-ERROR **:
file gthread-posix.c: line 247 (): error 'Device or resource busy'
during 'pthread_cond_destroy ((pthread_cond_t *) cond)'
aborting...
Aborted
I looked at the Glib reference, I found out I should use
throw Glib::Thread::Exit
();
to exit my thread. But I don't really know how to use this properly. Can anyone tell me how to use it please!!!!!
Thanks in advance!
Fei
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]