FreeBSD/contrib/subversion/subversion/svnserve/winservice.c
/* This function cleans up state associated with the service support.
   If the dispatcher thread handle is non-NULL, then this function
   will wait for the dispatcher thread to exit. */
This function cleans up state associated with the service support.
If the dispatcher thread handle is non-NULL, then this function
will wait for the dispatcher thread to exit.
This function cleans up state associated with the service support . If the dispatcher thread handle is non - NULL then this function will wait for the dispatcher thread to exit .
static void
winservice_cleanup(void)
{
  if (winservice_start_event != NULL)
    {
      CloseHandle(winservice_start_event);
      winservice_start_event = NULL;
    }
  if (winservice_dispatcher_thread != NULL)
    {
      dbg_print("winservice_cleanup:"
                " waiting for dispatcher thread to exit\r\n");
      WaitForSingleObject(winservice_dispatcher_thread, INFINITE);
      CloseHandle(winservice_dispatcher_thread);
      winservice_dispatcher_thread = NULL;
    }
}
static void winservice_cleanup ( void ) { if ( winservice_start_event != NULL ) { CloseHandle ( winservice_start_event ) ; winservice_start_event = NULL ; } if ( winservice_dispatcher_thread != NULL ) { dbg_print ( " " " \r \n " ) ; WaitForSingleObject ( winservice_dispatcher_thread , INFINITE ) ; CloseHandle ( winservice_dispatcher_thread ) ; winservice_dispatcher_thread = NULL ; } }
This function cleans up state associated with the service support.
This function cleans up state associated with the service support .