Re: [gnet] gserver + threads
- From: "Robert L. RAKSI" <lobz t-sys hu>
- To: gnet lists gnetlibrary org
- Subject: Re: [gnet] gserver + threads
- Date: Thu, 2 Dec 2004 13:32:18 +0100
Hi!
If I could attach the GConn's gsource to the context of the th_B
thread's gmainloop it would work just fine. But how do I do that?
How can I find the gsource object associated to the gconn? The
attachment can be done with g_source_attach().
Pls, somebody help me! :)
On Wed, Dec 01, 2004 at 01:52:17PM +0100, Robert L. RAKSI wrote:
> Hi!
>
> I have the following situation:
>
> I have a gserver instance in the main thread (th_A) with a callback
> function (cb_A).
> In this function I create a thread (th_B) that will do the
> communication with the GConn received from cb_A.
> In thread th_B i set the connection's callback function to cb_B.
>
> The problem is that there is incoming data on the socket, cb_B is
> called, but its called in thread th_A and not th_B. Is this normal? And
> is it possible to make cb_B be called from thread th_B?
>
> Hope its not too confusing:)
>
--
Robert L. RAKSI
-- Dave! Put down those windows disks! Dave! Please Dave! (HAL 9000) --
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]