PxGetGlobalServerMbx()
Get the requested application-specific server mailbox from an other core.
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxError_t PxGetGlobalServerMbx (PxCoreId_t ServerCore, PxMbxReq_t mbxreqid); - ARGUMENTS
|
|
|
- ERROR CODES
-
PXERR_OPOOL_ILLOPOOLThe passed object pool handle is not valid
PXERR_GLOBAL_ILLEGAL_COREThe requested object pool is not on the same core
PXERR_REQUEST_FAILEDThe requested object is not valid
PXERR_NAME_ILL_REQUESTThe
mbxreqidis not knownPXERR_INTERNAL_INCONSISTENCYAllocated object not convertible
PXERR_OBJ_NOOBJNo free object is available
PXERR_OBJ_ILLOBJThe passed object handle is not valid
PXERR_ACCESS_RIGHTThe calling task has not the right to access the object pool
- DESCRIPTION
-
PxGetGlobalServerMbxrequests a system specific mailbox id for a defined service (mbxreqid) from another core (ServerCore).
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
ServerCoremust not exceed the number of available cores(V).mbxreqidmust be a valid PXROS-HR service mailbox (V).
-
- After call
-
-
The function returns
PXERR_NOERRORif the mailbox could be requested for the service mailbox. Any other return value describes an error, which has to be interpreted (C).
-
- Best Practice
-
-
No restrictions
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" PxError_t err = PxGetGlobalServerMbx(ServerCore, mbxreqid); if (err == PXERR_NOERROR) { // Handle mailbox } else { // Report error }