\hypertarget{group__mysync}{}\doxysection{Mysync Library}
\label{group__mysync}\index{Mysync Library@{Mysync Library}}


Synchronization functions for myarr struct and file operations.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{group__mysync_gaabf6d0a68931c2a0b31e8a5b613da168}{wait\+Close}} (FILE $\ast$file)
\begin{DoxyCompactList}\small\item\em @ . \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__mysync_ga82d2d74cac6ae7b30bbdc2b303adec95}{wait}} (void)
\begin{DoxyCompactList}\small\item\em @ proceeding. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__mysync_ga089251b204e28114e22b65fd90a70a78}{syncwrite}} (int $\ast$input, size\+\_\+t Array\+Length, const char $\ast$file)
\begin{DoxyCompactList}\small\item\em @ separate thread. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__mysync_ga477b23c8d59728c3e9f86622338de366}{print\+TOD}} (FILE $\ast$out)
\begin{DoxyCompactList}\small\item\em @ with synchronization. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Synchronization functions for myarr struct and file operations. 

\begin{DoxyNote}{Note}
Functions \mbox{\hyperlink{group__myarr_ga77cbf6c722fedb0f0b4e62343066918a}{sync\+Append\+Myarr()}} and \mbox{\hyperlink{group__myarr_gaf4df8de66e6061df23bf01ffe484bb2d}{thread\+Append\+Myarr()}} are documented in the \mbox{\hyperlink{group__myarr}{Myarr Library}} group due to Doxygen\textquotesingle{}s automatic grouping. See their documentation in the myarr module for details. 
\end{DoxyNote}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__mysync_ga477b23c8d59728c3e9f86622338de366}\label{group__mysync_ga477b23c8d59728c3e9f86622338de366}} 
\index{Mysync Library@{Mysync Library}!printTOD@{printTOD}}
\index{printTOD@{printTOD}!Mysync Library@{Mysync Library}}
\doxysubsubsection{\texorpdfstring{printTOD()}{printTOD()}}
{\footnotesize\ttfamily void print\+TOD (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{out }\end{DoxyParamCaption})}



@ with synchronization. 


\begin{DoxyParams}{Parameters}
{\em out} & Pointer to the file to write to. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__mysync_ga089251b204e28114e22b65fd90a70a78}\label{group__mysync_ga089251b204e28114e22b65fd90a70a78}} 
\index{Mysync Library@{Mysync Library}!syncwrite@{syncwrite}}
\index{syncwrite@{syncwrite}!Mysync Library@{Mysync Library}}
\doxysubsubsection{\texorpdfstring{syncwrite()}{syncwrite()}}
{\footnotesize\ttfamily int syncwrite (\begin{DoxyParamCaption}\item[{int $\ast$}]{input,  }\item[{size\+\_\+t}]{Array\+Length,  }\item[{const char $\ast$}]{file }\end{DoxyParamCaption})}



@ separate thread. 


\begin{DoxyParams}{Parameters}
{\em input} & Pointer to the input array to write. \\
\hline
{\em Array\+Length} & Length of the input array. \\
\hline
{\em file} & Name of the file to write to. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success, -\/1 on failure. 
\end{DoxyReturn}
\mbox{\Hypertarget{group__mysync_ga82d2d74cac6ae7b30bbdc2b303adec95}\label{group__mysync_ga82d2d74cac6ae7b30bbdc2b303adec95}} 
\index{Mysync Library@{Mysync Library}!wait@{wait}}
\index{wait@{wait}!Mysync Library@{Mysync Library}}
\doxysubsubsection{\texorpdfstring{wait()}{wait()}}
{\footnotesize\ttfamily void wait (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



@ proceeding. 

checks locks for ctr\+\_\+mutex and waits on ctr\+\_\+zero until count is zero, then releases lock. \mbox{\Hypertarget{group__mysync_gaabf6d0a68931c2a0b31e8a5b613da168}\label{group__mysync_gaabf6d0a68931c2a0b31e8a5b613da168}} 
\index{Mysync Library@{Mysync Library}!waitClose@{waitClose}}
\index{waitClose@{waitClose}!Mysync Library@{Mysync Library}}
\doxysubsubsection{\texorpdfstring{waitClose()}{waitClose()}}
{\footnotesize\ttfamily void wait\+Close (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file }\end{DoxyParamCaption})}



@ . 


\begin{DoxyParams}{Parameters}
{\em file} & Pointer to the file to wait on. \\
\hline
\end{DoxyParams}
