28.10.2014 Views

Synergy User Manual and Tutorial. - THE CORE MEMORY

Synergy User Manual and Tutorial. - THE CORE MEMORY

Synergy User Manual and Tutorial. - THE CORE MEMORY

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Synergy</strong> <strong>User</strong> <strong>Manual</strong> <strong>and</strong> <strong>Tutorial</strong><br />

cnf_tsput(tpname, tpvalue, tpsize)<br />

PURPOSE: Inserts a tuple into a named tuple space<br />

PARAMETERS: int tpsize -<br />

char *tpname -<br />

char *tpvalue -<br />

RETURNS: ? on success or an error code otherwise<br />

cnf_tsread(tpname, tpvalue, tpsize)<br />

PURPOSE: Read a tuple from a named tuple space<br />

PARAMETERS: int tpsize -<br />

char *tpname -<br />

char *tpvalue -<br />

RETURNS: int tpsize – the size of the tuple received if successful or an error<br />

code otherwise<br />

cnf_tsget(id, tpname, tpvalue, tpsize)<br />

PURPOSE: Destructive read a tuple from a named tuple space<br />

PARAMETERS: int id -<br />

int tpsize -<br />

char *tpname -<br />

char *tpvalue -<br />

RETURNS: int tpsize – the size of the tuple received if successful or an error<br />

code otherwise<br />

cnf_tsput(id, tpname, tpvalue, tpsize)<br />

PURPOSE:<br />

PARAMETERS: int id -<br />

int tpsize -<br />

char *tpname -<br />

char *tpvalue -<br />

RETURNS: ? on success or an error code otherwise<br />

Inserts a tuple into a named tuple space<br />

207

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!