TutCbGetPriority


Name

TutCbGetPriority — get the current priority of a callback

Synopsis

T_BOOL TutCbGetPriority(cb, priority_return) 
T_CB cb; 
T_CB_PRIORITY *priority_return; 

Arguments

cb — callback to get the priority of

priority_return — pointer to storage for the priority

Return Values

TRUE if successful, FALSE otherwise.

Diagnostics

None

Description

This function retrieves the priority of cb and stores it in the location pointed to by priority_return.

Caution

None

See Also

TutCbSetPriority

Examples

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