Get the PID from a RCVID
pid_t PtGetRcvidPid( int rcvid );
This function should be used to obtain the process ID (PID) from the receive ID (RCVID). It might be needed if a nonspecific input procedure attaches a specific input procedure.
The PID, or -1 on error.
int general_input_proc( void *data, pid_t rcvid, void *msg, size_t size) { PtAppAddInput( NULL, PtGetRcvidPid(rcvid), function, data ); #if defined(__QNXNTO__) MsgReplyv( rcvid, ... ); #else Reply( rcvid, ... ); #endif return Pt_END; }
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |