SWI_setattrs
2-450
The following example uses SWI_setattrs:
extern SWI_Handle swi;
SWI_Attrs attrs;
SWI_getattrs(swi, &attrs);
attrs.priority = 5;
SWI_setattrs(swi, &attrs);
Constraints and
Calling Context
❏
SWI_setattrs must not be used to set the attributes of a SWI that is
preempted or is ready to run.
❏
The fxn attribute cannot be NULL.
❏
The priority attribute must be less than or equal to 14 and greater
than or equal to 1.
See Also