Link to home
Start Free TrialLog in
Avatar of sudhakar_koundinya
sudhakar_koundinya

asked on

Worker Threads Dowbt

What is the difference between these two code snippets while working with worker threads??

AfxEndThread(0);
return 0;


and directly
return 0;

Avatar of Member_2_1001466
Member_2_1001466

In the first snippet the line return 0 won't be executed. AfxEndThread () acts like exit function for a normal application. It terminates the thread at the point of execution. No need to call it directly before a return statement.
ASKER CERTIFIED SOLUTION
Avatar of Member_2_1001466
Member_2_1001466

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial