NAME

coreThreadDetach() -- detach an attached thread from appCORE.


SYNOPSIS

include "appcore.h"

int coreThreadDetach()

DESCRIPTION

The coreThreadDetach() function detaches a previously attached thread from appCORE. The thread will no longer appear in appCORE's thread list and it's thread handle shall be invalid after the call.


PARAMETERS

none

RETURN VALUE

If successful, coreThreadDetach() returns 0. On failure it returns a value of -1.

errno ValueCondition
ECANCELEDThe thread is either not attached or not attached via coreThreadAttach()

MULTI-THREAD SAFETY LEVEL

MT-safe.


SEE ALSO

Functions:
coreThreadStart() coreThreadStop() coreThreadStopJoin() coreThreadAttach() coreThreadSocketAdd() coreThreadSocketRemove() corehThread()