SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
pipe_sync.c File Reference

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)
 

Detailed Description

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.
Author
Kris Demuynck
Date
April 11th 1994