in reply to Re^12: Forking Clients
in thread Forking Clients
I assume in the instances where I don't need the information, lets say for example I kick of some command blindly, then I can just not do a join for it. Is this correct?
If there is nothing useful returned or you just aren't interested in what is, just detach it at the point of creation:
threads->create( ...)->detach;
And any return will be discarded.
If you're not sure if you will want the returns or not, start it in the normal way and decide later. If you want it, do the join. If you don't detach it as soon as you know that.
|
|---|