mIRC Homepage
Posted By: Turbo_boy Threading - 10/06/08 08:03 AM
Hello there,

Why not using threading to read data like sockets or for other
things that usage loops?
Posted By: Riamus2 Re: Threading - 10/06/08 12:26 PM
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.
Posted By: argv0 Re: Threading - 10/06/08 10:16 PM
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.
© mIRC Discussion Forums