SemysThreadDestroy

01 Destroys a thread object.
02

int32 SemysThreadDestroy(HSemysThread thread);

03 Parameters:
  • thread: The thread to destroy.
04 Return Values:
0 if the thread can not be desroyed (the thread to stop is the calling thread itself) or a nonzero value if the thread was successfully destroyed.
05 A thread can not be destroyed if the calling thread is the same, but the procedures to stop the thread are executed: a subsequent call to SemysThreadShouldRun() will return 0 and the abort function will be called.
06 Even a stopped thread needs to be destroyed to free associated resources.
07 Reference: SemysThreading.h
Implementation: Semys Library
See Also: Threading Sub-System, SemysThreadCreate(), SemysThreadStop()

Goto: Main Page; This page is part of the Semys software documentation. See About: Documentation for details.