TutCbGetPriority get the current priority of a callback
cb
callback to get the priority of
priority_return
pointer to storage for the priority
TRUE
if successful, FALSE
otherwise.
None
This function retrieves the priority of cb
and stores it in the location pointed to by priority_return
.
None
This example prints the priority of a callback:
static void T_ENTRY time_change_cb(dummy, data, arg) T_PTR dummy;/* always NULL */
T_TIME_CHANGE_CB_DATA data; T_CB_ARG arg; { T_CB_PRIORITY cb_pri; if (!TutCbGetPriority(data->cb, &cb_pri)) {/* error */
} TutOut("priority is: %d\n", cb_pri); } ... if (TutTimeChangeCbCreate(time_change_cb, NULL) == NULL) {/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |