다음을 통해 공유


AfxEndThread

Call this function to terminate the currently executing thread.

void AFXAPI AfxEndThread( 
   UINT nExitCode, 
   BOOL bDelete = TRUE  
);

매개 변수

  • nExitCode
    Specifies the exit code of the thread.

  • bDelete
    Deletes the thread object from memory.

설명

Must be called from within the thread to be terminated.

For more information on AfxEndThread, see the article Multithreading: Terminating Threads.

요구 사항

헤더: afxwin.h

참고 항목

참조

AfxBeginThread

개념

MFC 매크로 및 전역