\hypertarget{SEM_8h}{
\section{SEM.h File Reference}
\label{SEM_8h}\index{SEM.h@{SEM.h}}
}
Simple semaphore, interface definition.  




This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=66pt]{SEM_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hyperlink{SEM_8h_8vx-xxx-xxx_a0}{SEM} \hyperlink{SEM_8h_a0}{SEM\_\-create} (unsigned int options)
\begin{CompactList}\small\item\em Creates a semaphore. \item\end{CompactList}\item 
unsigned int \hyperlink{SEM_8h_a1}{SEM\_\-take\-W} (\hyperlink{SEM_8h_8vx-xxx-xxx_a0}{SEM} semaphore)
\begin{CompactList}\small\item\em Takes the semaphore. This call will block until the semaphore can be taken. \item\end{CompactList}\item 
unsigned int \hyperlink{SEM_8h_a2}{SEM\_\-give} (\hyperlink{SEM_8h_8vx-xxx-xxx_a0}{SEM} semaphore)
\begin{CompactList}\small\item\em Gives the semaphore. \item\end{CompactList}\item 
unsigned int \hyperlink{SEM_8h_a3}{SEM\_\-destroy} (\hyperlink{SEM_8h_8vx-xxx-xxx_a0}{SEM} semaphore)
\begin{CompactList}\small\item\em Destroys the semaphore. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Simple semaphore, interface definition. 

\begin{Desc}
\item[Author:]JJRussell - \href{mailto:russell@slac.stanford.edu}{\tt russell@slac.stanford.edu}\end{Desc}


\footnotesize\begin{verbatim}

    CVS $Id: SEM.h,v 1.2 2004/12/07 16:13:05 russell Exp $
\end{verbatim}\normalsize


\subsection{Function Documentation}
\hypertarget{SEM_8h_a0}{
\index{SEM.h@{SEM.h}!SEM_create@{SEM\_\-create}}
\index{SEM_create@{SEM\_\-create}!SEM.h@{SEM.h}}
\subsubsection[SEM\_\-create]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{SEM_8h_8vx-xxx-xxx_a0}{SEM} SEM\_\-create (unsigned int {\em options})}}
\label{SEM_8h_a0}


Creates a semaphore. 

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em NON-NULL}]A pointer to the created semaphore \item[{\em NULL}]Error in the creation\end{description}
\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em options}]A bit mask of options formed from the enumeration SEM\_\-OPTIONS\_\-M \end{description}
\end{Desc}
\hypertarget{SEM_8h_a3}{
\index{SEM.h@{SEM.h}!SEM_destroy@{SEM\_\-destroy}}
\index{SEM_destroy@{SEM\_\-destroy}!SEM.h@{SEM.h}}
\subsubsection[SEM\_\-destroy]{\setlength{\rightskip}{0pt plus 5cm}unsigned int SEM\_\-destroy (\hyperlink{SEM_8h_8vx-xxx-xxx_a0}{SEM} {\em semaphore})}}
\label{SEM_8h_a3}


Destroys the semaphore. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em semaphore}]The semaphore to destroy \end{description}
\end{Desc}
\hypertarget{SEM_8h_a2}{
\index{SEM.h@{SEM.h}!SEM_give@{SEM\_\-give}}
\index{SEM_give@{SEM\_\-give}!SEM.h@{SEM.h}}
\subsubsection[SEM\_\-give]{\setlength{\rightskip}{0pt plus 5cm}unsigned int SEM\_\-give (\hyperlink{SEM_8h_8vx-xxx-xxx_a0}{SEM} {\em semaphore})}}
\label{SEM_8h_a2}


Gives the semaphore. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em semaphore}]The semaphore to give \end{description}
\end{Desc}
\hypertarget{SEM_8h_a1}{
\index{SEM.h@{SEM.h}!SEM_takeW@{SEM\_\-takeW}}
\index{SEM_takeW@{SEM\_\-takeW}!SEM.h@{SEM.h}}
\subsubsection[SEM\_\-takeW]{\setlength{\rightskip}{0pt plus 5cm}unsigned int SEM\_\-take\-W (\hyperlink{SEM_8h_8vx-xxx-xxx_a0}{SEM} {\em semaphore})}}
\label{SEM_8h_a1}


Takes the semaphore. This call will block until the semaphore can be taken. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em semaphore}]The semaphore to take \end{description}
\end{Desc}
