tico 0.1
Mechanical Watch Terminal Timegrapher
Functions
Mysync Library

Synchronization functions for myarr struct and file operations. More...

Functions

void waitClose (FILE *file)
 @ . More...
 
void wait (void)
 @ proceeding. More...
 
int syncwrite (int *input, size_t ArrayLength, const char *file)
 @ separate thread. More...
 
void printTOD (FILE *out)
 @ with synchronization. More...
 

Detailed Description

Synchronization functions for myarr struct and file operations.

Note
Functions syncAppendMyarr() and threadAppendMyarr() are documented in the Myarr Library group due to Doxygen's automatic grouping. See their documentation in the myarr module for details.

Function Documentation

◆ printTOD()

void printTOD ( FILE *  out)

@ with synchronization.

Parameters
outPointer to the file to write to.

◆ syncwrite()

int syncwrite ( int *  input,
size_t  ArrayLength,
const char *  file 
)

@ separate thread.

Parameters
inputPointer to the input array to write.
ArrayLengthLength of the input array.
fileName of the file to write to.
Returns
0 on success, -1 on failure.

◆ wait()

void wait ( void  )

@ proceeding.

checks locks for ctr_mutex and waits on ctr_zero until count is zero, then releases lock.

◆ waitClose()

void waitClose ( FILE *  file)

@ .

Parameters
filePointer to the file to wait on.