CPX_CALLBACKCONTEXT_THREAD_UP

Generic callback at thread start

#define CPX_CALLBACKCONTEXT_THREAD_UP 0x0002

Description

This constant is used to specify CPLEX generic callback invocation when CPLEX activates a thread. Note that this notification is about thread activation, not thread creation. CPLEX can use thread pools, in which case thread creation and thread activation are two very different events.

The constant is used in two different ways:
  • As a value passed into the generic callback function to indicate in which context the generic callback is invoked.
  • Bitwise ORed into the where argument of the CPXXcallbacksetfunc and CPXcallbacksetfunc function to indicate in which situations CPLEX should invoke the generic callback.

See also