KasperskyOS Community Edition 1.1
Contents
Contents
KosThreadCallback()
The callback function prototype is declared in the kos/thread.h
file.
typedef void KosThreadCallback(KosThreadCallbackReason reason);
/* Callback function argument */
typedef enum KosThreadCallbackReason {
KosThreadCallbackReasonCreate,
KosThreadCallbackReasonDestroy,
} KosThreadCallbackReason;
When a new thread is created, all registered callback functions will be called with the KosThreadCallbackReasonCreate
argument. When the thread is terminated, they will be called with the KosThreadCallbackReasonDestroy
argument.