visual c++ sharing thread with multiple instance of DLL

  • Thread starter Thread starter Ming Chee Chang
  • Start date Start date
M

Ming Chee Chang

Guest
Is there a sample code that can have a thread running that is shared between multiple instance of the DLL???


For example,

1st instance spawn the thread as shown below

static UINT WritePumpThread1(LPVOID lpVoid)
{
while (1)
{
Sleep(1);
}
return 0;
}


can we make the 2nd instance that already has that same thread running from the 1st instance??? Again, that thread running is shared among multiple instance of that DLL.

Continue reading...
 
Back
Top