Visual C++ 6 Unleashed

Visual C++ 6 Unleashed

By MICKEY WILLIAMS and David Bennett

Summary

In this chapter, you looked at many of the nuts and bolts used to construct a multithreaded application in MFC. It now is up to you, the developer, to make sure that your application uses these tools and threads properly, including proper thread synchronization.

You learned how to set up your application to use threads, as well as how to create worker threads to do background processing without holding up other threads in your application.

You also explored how to create user-interface threads that can manage windows independently, as well as the details of creating a class to initialize your user-interface thread and to handle messages it receives.

In addition, you learned how threads can use their own thread local storage, as well as how to synchronize your threads to share common resources or use events to notify your threads when interesting things happen.

Share ThisShare This

Informit Network