PiP - Process-in-Process
pip.h File Reference

Go to the source code of this file.

Functions

int pip_init (int *pipidp, int *ntasks, void **root_expp, int opts)
 Initialize the PiP library.
int pip_fin (void)
 finalize the PiP library.
int pip_spawn (char *filename, char **argv, char **envv, int coreno, int *pipidp, pip_spawnhook_t before, pip_spawnhook_t after, void *hookarg)
 spawn a PiP task
int pip_export (void *exp)
 export a memory region of the calling PiP root or a PiP task to the others.
int pip_import (int pipid, void **expp)
 import the exposed memory region of the other.
int pip_get_addr (int pipid, const char *symnam, void **addrp)
 import the exposed memory region of the other.
int pip_get_pipid (int *pipidp)
 get PIPID
int pip_get_ntasks (int *ntasksp)
 get the maximum number of the PiP tasks
int pip_isa_piptask (void)
 check if the calling task is a PiP task or not
int pip_get_mode (int *modep)
 get the PiP execution mode
int pip_exit (int retval)
 terminate PiP task
int pip_wait (int pipid, int *retval)
 wait for the termination of a PiP task
int pip_trywait (int pipid, int *retval)
 wait for the termination of a PiP task in a non-blocking way
int pip_kill (int pipid, int signal)
 deliver a signal to a PiP task
int pip_get_id (int pipid, intptr_t *idp)
 deliver a process or thread ID
const char * pip_get_mode_str (void)
 get a string of the current execution mode
void pip_barrier_init (pip_barrier_t *barrp, int n)
 initialize barrier synchronization structure
void pip_barrier_wait (pip_barrier_t *barrp)
 wait on barrier synchronization in a busy-wait way

Detailed Description

 All Files Functions