assign none to COM thread model

Joined
Feb 12, 2008
Messages
108
Reaction score
0
Hello everyone,


As mentioned in the book ATL Internals, when assign none to COM thread model,

--------------------
If there is no ThreadingModel given in the registry, COM will assume a legacy single-threaded class and access the class object from the process's first STA, creating a new STA is necessary. This protects objects from having to synchronize access to global, static, or instance data.
--------------------

I do not understand why "This protects objects from having to synchronize access to global, static, or instance data"? Any ideas?


thanks in advance,
George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,814
Latest member
SpicetreeDigital

Latest Threads

Top