\hypertarget{mutex__unix_8h}{\section{opal/threads/mutex\+\_\+unix.h File Reference}
\label{mutex__unix_8h}\index{opal/threads/mutex\+\_\+unix.\+h@{opal/threads/mutex\+\_\+unix.\+h}}
}


Mutual exclusion functions\+: Unix implementation.  


{\ttfamily \#include \char`\"{}opal\+\_\+config.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/class/opal\+\_\+object.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/sys/atomic.\+h\char`\"{}}\\*
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structopal__mutex__t}{opal\+\_\+mutex\+\_\+t}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{mutex__unix_8h_a920bd83bc43be417366846453ee46a30}{O\+P\+A\+L\+\_\+\+D\+E\+C\+L\+S\+P\+E\+C {\bfseries O\+B\+J\+\_\+\+C\+L\+A\+S\+S\+\_\+\+D\+E\+C\+L\+A\+R\+A\+T\+I\+O\+N} (\hyperlink{structopal__mutex__t}{opal\+\_\+mutex\+\_\+t})}\label{mutex__unix_8h_a920bd83bc43be417366846453ee46a30}

\item 
\hypertarget{mutex__unix_8h_a1a7c909c170da8a17e59bed5bbd0c5fc}{static int {\bfseries opal\+\_\+mutex\+\_\+atomic\+\_\+trylock} (\hyperlink{structopal__mutex__t}{opal\+\_\+mutex\+\_\+t} $\ast$m)}\label{mutex__unix_8h_a1a7c909c170da8a17e59bed5bbd0c5fc}

\item 
\hypertarget{mutex__unix_8h_ac8e3004d4ad2fa067750dd0f99f7467f}{static void {\bfseries opal\+\_\+mutex\+\_\+atomic\+\_\+lock} (\hyperlink{structopal__mutex__t}{opal\+\_\+mutex\+\_\+t} $\ast$m)}\label{mutex__unix_8h_ac8e3004d4ad2fa067750dd0f99f7467f}

\item 
\hypertarget{mutex__unix_8h_a24a01300cae69537a50a8694f79703dc}{static void {\bfseries opal\+\_\+mutex\+\_\+atomic\+\_\+unlock} (\hyperlink{structopal__mutex__t}{opal\+\_\+mutex\+\_\+t} $\ast$m)}\label{mutex__unix_8h_a24a01300cae69537a50a8694f79703dc}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Mutual exclusion functions\+: Unix implementation. 

Functions for locking of critical sections.

On unix, use pthreads or our own atomic operations as available. 