• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

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;

0
sudhakar_koundinya
Asked:
sudhakar_koundinya
  • 2
1 Solution
 
SteHCommented:
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.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now