OpenTP1 Version 7 Programming Reference C Language

[Contents][Index][Back][Next]

dc_rpc_get_service_prio - Reference the schedule priority of a service request

Format

ANSI C, C++

#include <dcrpc.h>
int  dc_rpc_get_service_prio (void)

K&R C

#include <dcrpc.h>
int  dc_rpc_get_service_prio()

Description

The function dc_rpc_get_service_prio() references that schedule priority of a service request which was set by the function dc_rpc_set_service_prio(). The value obtained by this function remains unchanged until the UAP calls the function dc_rpc_set_service_prio() again.

The function dc_rpc_get_service_prio() returns the default value (4) in the following cases:

Return values

Return value Explanation
Positive integer Schedule priority set by the function dc_rpc_set_service_prio(), in the range from 1 to 8.
Other than the above An unprecedented error (e.g., program damage) occurred.