]> git.pond.sub.org Git - empserver/blobdiff - src/lib/empthread/ntthread.c
Remove unused empth_terminate()
[empserver] / src / lib / empthread / ntthread.c
index 66d7c95412351bb69ff04e75244bf6c86631fb28..85c193ada210c9629273d3647bd48e8ab61b907a 100644 (file)
@@ -81,9 +81,6 @@ struct loc_Thread {
     /* The user data passed in at create time. */
     void *pvUserData;
 
-    /* True if this thread has been killed. */
-    BOOL bKilled;
-
     /* The entry function for the thread. */
     void (*pfnEntry) (void *);
 
@@ -245,14 +242,6 @@ loc_RunThisThread(HANDLE hWaitObject)
 
     empth_t *pThread = TlsGetValue(dwTLSIndex);
 
-    if (pThread->bKilled) {
-       if (!pThread->bMainThread) {
-           TlsSetValue(dwTLSIndex, NULL);
-           loc_FreeThreadInfo(pThread);
-           _endthread();
-       }
-    }
-
     hWaitObjects[0] = hThreadMutex;
     hWaitObjects[1] = hWaitObject;
 
@@ -538,20 +527,6 @@ empth_yield(void)
     loc_RunThisThread(NULL);
 }
 
-/************************
- * empth_terminate
- *
- * Kill off the thread.
- */
-void
-empth_terminate(empth_t *pThread)
-{
-    loc_debug("killing thread %s", pThread->szName);
-    pThread->bKilled = TRUE;
-
-    SetEvent(pThread->hThreadEvent);
-}
-
 /************************
  * empth_select
  *