AMPL_RunnablePtr#

group AMPL_RunnablePtr

Function pointer type representing a generic runnable callback.

A function of this type can be used to represent an executable unit of work that is invoked by the API. The callback receives a single opaque pointer that can be used to pass user-defined data or context.

The ownership and lifetime of the object pointed to by the argument are managed by the caller unless explicitly stated otherwise.

param runnable:

User-defined context passed to the callback.

Typedefs

typedef void (*RunnablePtr)(void *runnable)#