title: Mutex sharing between DLL and application
body: <p>I have an multithreaded application that uses a DLL that I created. There is a certain function that will fail if the DLL has not run a certain function yet. How can I make sure that the thread that runs this application function waits for that DLL function to complete before continuing?  </p>
  
  <p>Visualization:</p>
  
  <p>O = DLL Function Completes</p>
  
  <p>T = Application Function Starts</p>
  
  <p>App Thread:--------------O----------------------------------</p>
  
  <p>DLL Thread:----------------------T--------------------------</p>