NXLwWorkCancel

Cancels a previously scheduled light-weight work item.

Library:LibC
Classification:NKS
Service:Threads

Syntax

  #include <nks/thread.h> 
   
  int NXLwWorkCancel (
     NXLwWork_t  *work);
  

Parameters

work

(IN) Points to a previously scheduled light-weight work item.

Return Values

If successful, returns 0; otherwise, returns a nonzero error code:

Decimal

Hex

Constant

Description

9

0x09

NX_EINVAL

Invalid work context (the specified context is not waiting to run).

Remarks

An NKS light-weight work item is similar to a NetWare work-to-do item.

A light-weight work item can be canceled only if it has not started executing. See NXWorkSchedule for the normal NKS work scheduling function.

See Also