SPRAAK
|
Synchronization between child and parent communicating via a pipe-pair. More...
Functions | |
void | spr_pipe_sync_send (SprStream *sync_out, int *sync_counter) |
int | spr_pipe_correct_sync_nr (int sync_nr, int *sync_counter) |
int | spr_pipe_synchronize_ (SprStream *sync_out, SprStream *sync_in, int *sync_counter, SprStream *dest_file, char *intro_text, char *warn) |
int | spr_pipe_synchronize (SprStream *sync_out, SprStream *sync_in, int *sync_counter) |
Synchronization between child and parent communicating via a pipe-pair.
General remarks: 1. All non essential pointers can be set to NULL. e.g. - If <sync_counter> NULL then internal counter is used. - If <dest_file> NULL then nothing is printed. - If <warn> NULL then no warning is send. - If <intro_text> NULL then no intro text is printed. 2. An external sync-counter should only be used when there are several input/output communication pairs used.