예제 #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();
}
예제 #2
0
파일: myhttpd.cpp 프로젝트: magboh/MyHttpd
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();

}