Re: g_main_loop
- From: "Ed James" <edward james gmail com>
- To: gtk-list gnome org
- Subject: Re: g_main_loop
- Date: Tue, 15 Jul 2008 10:38:56 -0400
Just a guess, but I'd try putting a function in Thread 1 that emits the signal, but call
that function from Thread 2. This way, Thread 2 controls when the signal is emitted,
but the signal is still handled by Thread 1. Never actually tried this myself, though,
so I don't know for sure if one thread can call a function in another thread.
Ed James
2008/7/15 HASWANI HARISH-VCKR47 <
harish haswani motorola com>:
Hi All,
I am a beginner to gtk APIs.
My query is :
- In Thread T1 I am calling g_main_loop()
- In Thread T2 I am emitting a signal through
g_signal_emit_by_name(G_OBJECT, signal-name);
I saw that signal handler is running in Thread2 context. I want that it
should run in Thread 1 context. How I can achieve this?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]