\rhead{\bf MC\_Wait()}
\noindent
\vspace{5pt}
\rule{6.5in}{0.015in}
\noindent
{\LARGE \bf MC\_Wait()\index{MC\_Wait()}}\\
\phantomsection
\addcontentsline{toc}{section}{MC\_Wait()}

\noindent
{\bf Synopsis}\\
{\bf \#include $<$libmc.h$>$}\\
{\bf int MC\_Wait}({\bf MCAgency\_t} $agency$);\\

\noindent
{\bf Purpose}\\
Cause the calling thread to wait indefinitely on an agency.\\

\noindent
{\bf Return Value}\\
The function returns 0 on success and non-zero otherwise.\\

\noindent
{\bf Parameters}
\vspace{-0.1in}
\begin{description}
\item               
\begin{tabular}{p{10 mm}p{145 mm}}
$agency$ & A handle associated with a running agency. 
\end{tabular}
\end{description}

\noindent
{\bf Description}\\
This function simply waits for the agency. 
It must be run on a handle that is attached to an agency that has already 
been started with the function {\bf MC\_Initialize()}.\\

\noindent
{\bf Example}\\
\noindent
{\footnotesize\verbatiminput{../demos/getting_started/hello_world/server.c}}

\noindent
{\bf See Also}\\

%\CPlot::\DataThreeD(), \CPlot::\DataFile(), \CPlot::\Plotting(), \plotxy().\\
