[gnet] gserver + threads



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

    -- We are Pentium of Borg. Division is futile. You will be approximated! --



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]