Re: Thread created by g_thread _create() cannot write to memory
- From: Chris Vine <chris cvine freeserve co uk>
- To: gtk-list gnome org
- Cc:
- Subject: Re: Thread created by g_thread _create() cannot write to memory
- Date: Wed, 17 Aug 2005 00:15:02 +0100
On Tuesday 16 August 2005 12:11, elmo wrote:
> I've made a simple program (any variable name mistakes not present in
> original program ;]) :
[snip]
It has been mentioned in another reply that you need to use the GTK lock in
this case.
Although it hasn't caused your problem, you probably also want to note that
g_thread_exit() doesn't do what you think it does. (It exits the calling
thread - it is not equivalent to p_thread_cancel()). It also may or may not
cause stack unwinding (destruction of local objects) depending on the
threading implementation - with NPTL it will.
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]