Process-in-Process
|
Functions | |
int | pip_wait (int pipid, int *status) |
wait for the termination of a PiP task More... | |
int | pip_trywait (int pipid, int *status) |
wait for the termination of a PiP task in a non-blocking way More... | |
int | pip_wait_any (int *pipid, int *status) |
Wait for the termination of any PiP task. More... | |
int | pip_trywait_any (int *pipid, int *status) |
non-blocking version of pip_wait_any More... | |
int pip_wait | ( | int | pipid, |
int * | status | ||
) |
WIFEXITED
and so on defined in Glibc can be applied to the returned status
value.[in] | pipid | PiP ID to wait for. |
[out] | status | Status value of the terminated PiP task |
EPERM | PiP library is not initialized yet |
EPERM | This function is called other than PiP root |
EDEADLK | The specified pipid is the one of PiP root |
ECHILD | The target PiP task does not exist or it was already terminated and waited for |
int pip_trywait | ( | int | pipid, |
int * | status | ||
) |
wait
function of glibc and the macros such as WIFEXITED
and so on can be applied to the returned status
value.[in] | pipid | PiP ID to wait for. |
[out] | status | Status value of the terminated PiP task |
EPERM | The PiP library is not initialized yet |
EPERM | This function is called other than PiP root |
EDEADLK | The specified pipid is the one of PiP root |
ECHILD | The target PiP task does not exist or it was already terminated and waited for |
int pip_wait_any | ( | int * | pipid, |
int * | status | ||
) |
WIFEXITED
and so on defined in Glibc can be applied to the returned status
value.[out] | pipid | PiP ID of terminated PiP task. |
[out] | status | Exit value of the terminated PiP task |
EPERM | The PiP library is not initialized yet |
EPERM | This function is called other than PiP root |
ECHILD | The target PiP task does not exist or it was already terminated and waited for |
int pip_trywait_any | ( | int * | pipid, |
int * | status | ||
) |
WIFEXITED
and so on defined in Glibc can be applied to the returned status
value.[out] | pipid | PiP ID of terminated PiP task. |
[out] | status | Exit value of the terminated PiP task |
EPERM | The PiP library is not initialized yet |
EPERM | This function is called other than PiP root |
ECHILD | There is no PiP task to wait for |