Back to index

lightning-sunbird  0.9+nobinonly
Functions
thread.cpp File Reference
#include <windows.h>
#include <windowsx.h>
#include <process.h>
#include "thread.h"
#include "dbg.h"

Go to the source code of this file.

Functions

static DWORD WINAPI ThreadFunction (void *lp)

Function Documentation

static DWORD WINAPI ThreadFunction ( void lp) [static]

Definition at line 45 of file thread.cpp.

{
  if (lp == NULL)
    return 0L;

  CThread * thread = (CThread *)lp;
  BOOL res = thread->init();
  thread->setInitEvent();

  if(res)
    thread->run();

  thread->shut();
  DWORD ret;
  GetExitCodeThread(thread->getHandle(), &ret);
  thread->setShutEvent();
  return ret;
}

Here is the call graph for this function:

Here is the caller graph for this function: