\section{booster\-:\-:shared\-\_\-lock$<$ Mutex $>$ Class Template Reference}
\label{classbooster_1_1shared__lock}\index{booster\-::shared\-\_\-lock$<$ Mutex $>$@{booster\-::shared\-\_\-lock$<$ Mutex $>$}}


a Shared lock guard.  




{\ttfamily \#include $<$booster/booster/thread.\-h$>$}

Inheritance diagram for booster\-:\-:shared\-\_\-lock$<$ Mutex $>$\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classbooster_1_1shared__lock}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf shared\-\_\-lock} (Mutex \&m)\label{classbooster_1_1shared__lock_aadefd8bc4a69d7e30d789c835208d5fe}

\begin{DoxyCompactList}\small\item\em Acquire the lock. \end{DoxyCompactList}\item 
{\bf $\sim$shared\-\_\-lock} ()\label{classbooster_1_1shared__lock_aafaaba0924b92d2c1b483d4dd91a1ca8}

\begin{DoxyCompactList}\small\item\em Release the lock. \end{DoxyCompactList}\item 
Mutex $\ast$ {\bf mutex} () const \label{classbooster_1_1shared__lock_a2504ba3c80e9e0a2bb9b6fb6d8bf5f00}

\begin{DoxyCompactList}\small\item\em Get the reference to the mutex object. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Mutex$>$class booster\-::shared\-\_\-lock$<$ Mutex $>$}

a Shared lock guard. 

Acquire the shared lock in the constructor and release it in the destructor 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
booster/thread.\-h\end{DoxyCompactItemize}
