[Qt-interest] Data exchange in threads

Николай Шатохин n.shatokhin at gmail.com
Tue Apr 26 15:02:48 CEST 2011


Hello.

I have one server on qt4, one client on qt4 and entry point on php.

Client can send data to php by json and send data to server (this
action dynamically create new thread on server). Php can send data on
server too (it's no difference for server who send data). So we have
two thread created dynamically - one for client, one for entry (this
threads on server can be thousands or millions). So, how can entry's
thread send data only for this client's thread? If I'll you
signals/slot, all threads send data to all threads and all threads
must do checking (it's signal for me or not?). It's very slow. So, can
I use some quick method?



More information about the Qt-interest-old mailing list