PxOpoolResolveDefault()
Resolve an object pool default.
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxOpool_t PxOpoolResolveDefault (PxOpool_t opoolid); - ARGUMENTS
|
- RETURN VALUES
-
-
Object pool id
-
- ERROR CODES
-
PXERR_OPOOL_ILLOPOOLopoolidis not a valid object pool id - DESCRIPTION
-
PxOpoolResolveDefaultresolves an object pool default. More precisely, it returnsopoolidifopoolidis notPXOpoolSystemdefaultorPXOpoolTaskdefault. Otherwise, it returns the object pool id corresponding to the specified default.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
opoolidmust be:-
a valid PXROS-HR object pool created with a
PxOpoolRequestcall (V). The validity ofopoolidmay also be checked by thePxOpoolIsValidmacro (F). -
the symbolic value
PXOpoolSystemdefaultspecifying the system object pool(V) -
the symbolic value
PXOpoolTaskdefaultspecifying the task’s object pool(V)
-
-
- After call
-
-
The returned value is the id of type
PxOpool_t. This id may be checked with one of the following macros: -
PxopoolidIsValid()must be true. -
PxopoolidGet()must not be_PXIllegalObjId. -
PxopoolidError()must bePXERR_NOERRORotherwise the returned error code has to be interpreted (C).-
PxopoolidIsValid()must be true. -
PxopoolidGet()must not be_PXIllegalObjId. -
PxopoolidError()must bePXERR_NOERRORotherwise the returned error code has to be interpreted (C).
-
-
- Best Practice
-
-
No restrictions.
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" PxOpool_t RetOpool = PxOpoolResolveDefault(opoolid); if (PxopoolidError(RetOpool) != PXERR_NOERROR) { // Report error }