Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Global interface table?

global interface Table
0
0 Posted

Global interface table?

0
0

When you want to pass an interface pointer on an object in a STA to a worker thread in another apartment, rather than having to marshal it into a stream and pass the stream to the worker thread as a thread parameter, this interface (IGlobalInterfaceTable) will allow you to simply pass a cookie. When you register the interface in the GIT you get a COOKIE that you can use instead of passing the actual pointer. Care is required since we are using global places so take care of Race condition etc. This is an efficient way if you are unmarshalling an interface pointer multiple times between apartments in a process. _____________________ Each application that is running on a system is a process. Each process will have one or more threads to execute the program instructions. The Operating System is responisble for scheduling and executing the threads. SINGLE THREADED: here a process have only one thread for doing all of the work. So the process must wait for the current execution of the thread

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123