Ejemplo n.º 1
0
//
//	KIP Library cleanup routine. Removes hooks, frees resources.
//
VOID	KipCleanup(VOID)
{
    // Removing hooks
    RemoveAllHooks(NULL);
    // Waiting until all hook routines and workers are finished
    WaitForWorkers();
}
Ejemplo n.º 2
0
void MyHttpd::Stop()
{
    // All sites should be stopped (ie. their Socket closed).
    StopSites();
    // Stop request queue
    AppLog(Logger::DEBUG,"Shutting down Request Queue");
    RequestQueue::GetInstance().Shutdown();
    // Wait for request worker threads to die
    RequestQueue::GetInstance().WaitForWorkers();

    // Stop Connections. Should have no more requests to handle
    // Wait for Connection Threads to die
    ShutdownWorkers();
    WaitForWorkers();

}