mIRC Home    About    Download    Register    News    Help

Print Thread
#200706 10/06/08 08:03 AM
T
Turbo_boy
Turbo_boy
T
Hello there,

Why not using threading to read data like sockets or for other
things that usage loops?

#200716 10/06/08 12:26 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Because mIRC is a single threaded application. You can't just drop in multithreading for sockets. It would require enough work that you might as well do the entire thing at the same time, which may be done in the future at some point, but wouldn't happen anytime soon.

#200733 10/06/08 10:16 PM
Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
Event loops are better, since you can emulate threading without the added programming complexity. If your data processing gets too heavy, you can always move it into /timers to lessen the load-- which would be similar to spawning threads.


Link Copied to Clipboard