Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 94774a05d4f99367afd97b8b4adf565d > files > 935

libfilezilla-devel-0.19.3-1.mga7.armv7hl.rpm

\hypertarget{classfz_1_1mutex}{}\section{mutex Class Reference}
\label{classfz_1_1mutex}\index{mutex@{mutex}}


Lean replacement for std\+:\+:(recursive\+\_\+)mutex.  




{\ttfamily \#include $<$mutex.\+hpp$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classfz_1_1mutex_ad984e08a6bbb1abb557db1abe91bce4d}\label{classfz_1_1mutex_ad984e08a6bbb1abb557db1abe91bce4d}} 
{\bfseries mutex} (bool recursive=true)
\item 
\mbox{\Hypertarget{classfz_1_1mutex_af387c91cba698fd426314fe8652b1cab}\label{classfz_1_1mutex_af387c91cba698fd426314fe8652b1cab}} 
{\bfseries mutex} (\mbox{\hyperlink{classfz_1_1mutex}{mutex}} const \&)=delete
\item 
\mbox{\Hypertarget{classfz_1_1mutex_ad77717ec1535f945ec47b344ae8fec90}\label{classfz_1_1mutex_ad77717ec1535f945ec47b344ae8fec90}} 
\mbox{\hyperlink{classfz_1_1mutex}{mutex}} \& {\bfseries operator=} (\mbox{\hyperlink{classfz_1_1mutex}{mutex}} const \&)=delete
\item 
\mbox{\Hypertarget{classfz_1_1mutex_aa81aed607133209dade63a226818224d}\label{classfz_1_1mutex_aa81aed607133209dade63a226818224d}} 
void \mbox{\hyperlink{classfz_1_1mutex_aa81aed607133209dade63a226818224d}{lock}} ()
\begin{DoxyCompactList}\small\item\em Beware, manual locking isn\textquotesingle{}t exception safe, use \mbox{\hyperlink{classfz_1_1scoped__lock}{scoped\+\_\+lock}}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classfz_1_1mutex_a9278be8203e1c42e2619179882ae4403}\label{classfz_1_1mutex_a9278be8203e1c42e2619179882ae4403}} 
void \mbox{\hyperlink{classfz_1_1mutex_a9278be8203e1c42e2619179882ae4403}{unlock}} ()
\begin{DoxyCompactList}\small\item\em Beware, manual locking isn\textquotesingle{}t exception safe, use \mbox{\hyperlink{classfz_1_1scoped__lock}{scoped\+\_\+lock}}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classfz_1_1mutex_aa24a64f788f142df670c3abc809d32b6}\label{classfz_1_1mutex_aa24a64f788f142df670c3abc809d32b6}} 
bool \mbox{\hyperlink{classfz_1_1mutex_aa24a64f788f142df670c3abc809d32b6}{try\+\_\+lock}} ()
\begin{DoxyCompactList}\small\item\em Beware, manual locking isn\textquotesingle{}t exception safe. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classfz_1_1mutex_a9351cbf209565363a80a91bf7f65aca0}\label{classfz_1_1mutex_a9351cbf209565363a80a91bf7f65aca0}} 
class {\bfseries condition}
\item 
\mbox{\Hypertarget{classfz_1_1mutex_afcf922650b2fd9d76b7b939d8511bbd8}\label{classfz_1_1mutex_afcf922650b2fd9d76b7b939d8511bbd8}} 
class {\bfseries scoped\+\_\+lock}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Lean replacement for std\+:\+:(recursive\+\_\+)mutex. 

Unfortunately we can\textquotesingle{}t use std\+::mutex and std\+::condition\+\_\+variable as Min\+GW doesn\textquotesingle{}t implement C++11 threading yet. Even in those variants that at least mutexes and condition variables, they doen\textquotesingle{}t make use of Vista+\textquotesingle{}s C\+O\+N\+D\+I\+T\+I\+O\+N\+\_\+\+V\+A\+R\+I\+A\+B\+LE, so it\textquotesingle{}s too slow for our needs.

\begin{DoxyNote}{Note}
Once all platforms have C++11 threading implemented {\itshape in the fastest way possible}, this class will be removed. 
\end{DoxyNote}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{events_8cpp-example}{events.\+cpp}}.\end{Desc}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{mutex_8hpp}{mutex.\+hpp}}\end{DoxyCompactItemize}