NXLwWork_t

Contains information about a lightweight work item.

Service:Threads

Structure

  #include <nks/thread.h>
  
  typedef struct lwWork
  {
     void    *reserved[7];
     void   (*lwWorkFunc) (struct lwWork *, void *lwAppRef);
     void     lwAppRef;
  } NXLwWork_t;
  

Fields

reserved

Reserved.

lwWorkFunc

Points to the function to execute as light-weight work.

lwAppRef

Specifies an application-defined value. Anything set in this field persists throughout the work.

Remarks

The NX_CTXSTATE_INIT state signifies that the context is currently not bound and that the execution state has not been changed from the values used to initialize (allocate) the context.