\hypertarget{group__Eina__Thread__Group}{}\section{Thread}
\label{group__Eina__Thread__Group}\index{Thread@{Thread}}


Abstracts platform threads, providing a uniform A\+PI.  


\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group__Eina__Thread__Group_gacbfb74a9554f86829a021b6074ef9b31}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+SH}}(cleanup,  data)~pthread\+\_\+cleanup\+\_\+push(cleanup, data)
\begin{DoxyCompactList}\small\item\em Pushes a cleanup function to be executed when the thread is canceled. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__Thread__Group_gad33b7c1ec50b300be47e53832ff70b90}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+OP}}(exec\+\_\+cleanup)~pthread\+\_\+cleanup\+\_\+pop(exec\+\_\+cleanup)
\begin{DoxyCompactList}\small\item\em Pops a cleanup function to be executed when the thread is canceled. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}\label{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}} 
typedef uintptr\+\_\+t \mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}}
\begin{DoxyCompactList}\small\item\em Type for a generic thread. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Thread__Group_ga4621fcf4fac930dc7f781240bc9dfb26}\label{group__Eina__Thread__Group_ga4621fcf4fac930dc7f781240bc9dfb26}} 
typedef void $\ast$($\ast$ \mbox{\hyperlink{group__Eina__Thread__Group_ga4621fcf4fac930dc7f781240bc9dfb26}{Eina\+\_\+\+Thread\+\_\+\+Cb}}) (void $\ast$data, \mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}} t)
\begin{DoxyCompactList}\small\item\em Type for the definition of a thread callback function. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Thread__Group_ga240e6f04f3d6a051f2b16d0c2403cfc8}\label{group__Eina__Thread__Group_ga240e6f04f3d6a051f2b16d0c2403cfc8}} 
typedef enum \+\_\+\+Eina\+\_\+\+Thread\+\_\+\+Priority \mbox{\hyperlink{group__Eina__Thread__Group_ga240e6f04f3d6a051f2b16d0c2403cfc8}{Eina\+\_\+\+Thread\+\_\+\+Priority}}
\begin{DoxyCompactList}\small\item\em Type to enumerate different thread priorities. \end{DoxyCompactList}\item 
typedef void $\ast$($\ast$ \mbox{\hyperlink{group__Eina__Thread__Group_ga117083fbebdb7789f41e57315f6b8a59}{Eina\+\_\+\+Thread\+\_\+\+Cancellable\+\_\+\+Run\+\_\+\+Cb}}) (void $\ast$data)
\begin{DoxyCompactList}\small\item\em Type for the definition of a cancellable callback to run. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__Thread__Group_gaa4cf7c15a40c7d4eeaf1e96f0d559c2c}\label{group__Eina__Thread__Group_gaa4cf7c15a40c7d4eeaf1e96f0d559c2c}} 
enum {\bfseries \+\_\+\+Eina\+\_\+\+Thread\+\_\+\+Priority} \{ \newline
{\bfseries E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+U\+R\+G\+E\+NT}, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+N\+O\+R\+M\+AL}, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+B\+A\+C\+K\+G\+R\+O\+U\+ND}, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+I\+D\+LE}
 \}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}} \mbox{\hyperlink{group__Eina__Thread__Group_gacdaf8730f9e593fa025de487609524fa}{eina\+\_\+thread\+\_\+self}} (void)
\begin{DoxyCompactList}\small\item\em Returns identifier of the current thread. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Thread__Group_gacbccfd9039ea4e1555af9ded7d6ef571}{eina\+\_\+thread\+\_\+equal}} (\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}} t1, \mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}} t2)
\begin{DoxyCompactList}\small\item\em Checks if two thread identifiers are the same. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Thread__Group_gaac5a08be9aabf19e56de715f6a9e8af5}{eina\+\_\+thread\+\_\+create}} (\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}} $\ast$t, \mbox{\hyperlink{group__Eina__Thread__Group_ga240e6f04f3d6a051f2b16d0c2403cfc8}{Eina\+\_\+\+Thread\+\_\+\+Priority}} prio, int affinity, \mbox{\hyperlink{group__Eina__Thread__Group_ga4621fcf4fac930dc7f781240bc9dfb26}{Eina\+\_\+\+Thread\+\_\+\+Cb}} func, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Creates a new thread, setting its priority and affinity. \end{DoxyCompactList}\item 
void $\ast$ \mbox{\hyperlink{group__Eina__Thread__Group_ga8f0b8fa727aa899cd88e9d2909f8a588}{eina\+\_\+thread\+\_\+join}} (\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}} t)
\begin{DoxyCompactList}\small\item\em Joins a currently running thread, waiting until it finishes. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Thread__Group_gafe38e131374f93f1e2b1b1dcd08557f2}{eina\+\_\+thread\+\_\+name\+\_\+set}} (\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}} t, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Sets the name of a given thread for debugging purposes. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Thread__Group_ga880530701a26813da42f215be0f5751c}{eina\+\_\+thread\+\_\+cancel}} (\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}} t)
\begin{DoxyCompactList}\small\item\em Attempts to cancel a running thread. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Thread__Group_ga0236a523c70528b719be7114c0876e04}{eina\+\_\+thread\+\_\+cancellable\+\_\+set}} (\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} cancellable, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} $\ast$was\+\_\+cancellable)
\begin{DoxyCompactList}\small\item\em Enables or disables if the current thread can be canceled. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eina__Thread__Group_ga480968b42f90c1ba4dd09067675f98eb}{eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint}} (void)
\begin{DoxyCompactList}\small\item\em If the current thread is cancellable, this introduces a cancellation check point. \end{DoxyCompactList}\item 
void $\ast$ \mbox{\hyperlink{group__Eina__Thread__Group_gac43f06415a58021ec4184da2ef03e1b3}{eina\+\_\+thread\+\_\+cancellable\+\_\+run}} (\mbox{\hyperlink{group__Eina__Thread__Group_ga117083fbebdb7789f41e57315f6b8a59}{Eina\+\_\+\+Thread\+\_\+\+Cancellable\+\_\+\+Run\+\_\+\+Cb}} cb, \mbox{\hyperlink{group__Eina__Types__Group_gadbac560ba2bca5c61d97bfbb542018f3}{Eina\+\_\+\+Free\+\_\+\+Cb}} cleanup\+\_\+cb, void $\ast$data)
\begin{DoxyCompactList}\small\item\em This function will setup cleanup callback, turn the thread cancellable, execute the given callback, reset the cancellable state to its old value, run the cleanup callback and then return the callback return value. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
const void $\ast$ \mbox{\hyperlink{group__Eina__Thread__Group_gaca6773079b92837bd301c2976575c399}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+J\+O\+I\+N\+\_\+\+C\+A\+N\+C\+E\+L\+ED}}
\begin{DoxyCompactList}\small\item\em The return value of \mbox{\hyperlink{group__Eina__Thread__Group_ga8f0b8fa727aa899cd88e9d2909f8a588}{eina\+\_\+thread\+\_\+join()}} if it was canceled with \mbox{\hyperlink{group__Eina__Thread__Group_ga880530701a26813da42f215be0f5751c}{eina\+\_\+thread\+\_\+cancel()}}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Abstracts platform threads, providing a uniform A\+PI. 

It\textquotesingle{}s modeled after P\+O\+S\+IX T\+H\+R\+E\+A\+DS (pthreads), on Linux they are almost 1\+:1 mapping.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Lock__Group}{Lock}} for mutex/locking abstraction.
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}


\subsection{Macro Definition Documentation}
\mbox{\Hypertarget{group__Eina__Thread__Group_gacbfb74a9554f86829a021b6074ef9b31}\label{group__Eina__Thread__Group_gacbfb74a9554f86829a021b6074ef9b31}} 
\index{Thread@{Thread}!E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+SH@{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+SH}}
\index{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+SH@{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+SH}!Thread@{Thread}}
\subsubsection{\texorpdfstring{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+SH}{EINA\_THREAD\_CLEANUP\_PUSH}}
{\footnotesize\ttfamily \#define E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+SH(\begin{DoxyParamCaption}\item[{}]{cleanup,  }\item[{}]{data }\end{DoxyParamCaption})~pthread\+\_\+cleanup\+\_\+push(cleanup, data)}



Pushes a cleanup function to be executed when the thread is canceled. 

This macro will schedule a function cleanup(data) to be executed if the thread is canceled with \mbox{\hyperlink{group__Eina__Thread__Group_ga880530701a26813da42f215be0f5751c}{eina\+\_\+thread\+\_\+cancel()}} and the thread was previously marked as cancellable with \mbox{\hyperlink{group__Eina__Thread__Group_ga0236a523c70528b719be7114c0876e04}{eina\+\_\+thread\+\_\+cancellable\+\_\+set()}}.

It {\bfseries must} be paired with \mbox{\hyperlink{group__Eina__Thread__Group_gad33b7c1ec50b300be47e53832ff70b90}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+O\+P()}} in the same code block as they will expand to do \{\} while ()!

The cleanup function may also be executed if \mbox{\hyperlink{group__Eina__Thread__Group_gad33b7c1ec50b300be47e53832ff70b90}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+O\+P(\+E\+I\+N\+A\+\_\+\+T\+R\+U\+E)}} is used.

\begin{DoxyNote}{Note}
If the block within \mbox{\hyperlink{group__Eina__Thread__Group_gacbfb74a9554f86829a021b6074ef9b31}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+S\+H()}} and \mbox{\hyperlink{group__Eina__Thread__Group_gad33b7c1ec50b300be47e53832ff70b90}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+O\+P()}} returns, the cleanup callback will {\bfseries not} be executed! To avoid problems prefer to use \mbox{\hyperlink{group__Eina__Thread__Group_gac43f06415a58021ec4184da2ef03e1b3}{eina\+\_\+thread\+\_\+cancellable\+\_\+run()}}!
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em cleanup} & The function to execute on cancellation. \\
\hline
{\em data} & The context to give to cleanup function.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Thread__Group_gac43f06415a58021ec4184da2ef03e1b3}{eina\+\_\+thread\+\_\+cancellable\+\_\+run()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


Referenced by eina\+\_\+thread\+\_\+cancellable\+\_\+run().

\mbox{\Hypertarget{group__Eina__Thread__Group_gad33b7c1ec50b300be47e53832ff70b90}\label{group__Eina__Thread__Group_gad33b7c1ec50b300be47e53832ff70b90}} 
\index{Thread@{Thread}!E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+OP@{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+OP}}
\index{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+OP@{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+OP}!Thread@{Thread}}
\subsubsection{\texorpdfstring{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+OP}{EINA\_THREAD\_CLEANUP\_POP}}
{\footnotesize\ttfamily \#define E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+OP(\begin{DoxyParamCaption}\item[{}]{exec\+\_\+cleanup }\end{DoxyParamCaption})~pthread\+\_\+cleanup\+\_\+pop(exec\+\_\+cleanup)}



Pops a cleanup function to be executed when the thread is canceled. 

This macro will remove a previously pushed cleanup function, thus if the thread is canceled with \mbox{\hyperlink{group__Eina__Thread__Group_ga880530701a26813da42f215be0f5751c}{eina\+\_\+thread\+\_\+cancel()}} and the thread was previously marked as cancellable with \mbox{\hyperlink{group__Eina__Thread__Group_ga0236a523c70528b719be7114c0876e04}{eina\+\_\+thread\+\_\+cancellable\+\_\+set()}}, that cleanup won\textquotesingle{}t be executed anymore.

It {\bfseries must} be paired with \mbox{\hyperlink{group__Eina__Thread__Group_gacbfb74a9554f86829a021b6074ef9b31}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+S\+H()}} in the same code block as they will expand to do \{\} while ()!

\begin{DoxyNote}{Note}
If the block within \mbox{\hyperlink{group__Eina__Thread__Group_gacbfb74a9554f86829a021b6074ef9b31}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+S\+H()}} and \mbox{\hyperlink{group__Eina__Thread__Group_gad33b7c1ec50b300be47e53832ff70b90}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+O\+P()}} returns, the cleanup callback will {\bfseries not} be executed even if exec\+\_\+cleanup is E\+I\+N\+A\+\_\+\+T\+R\+U\+E! To avoid problems prefer to use \mbox{\hyperlink{group__Eina__Thread__Group_gac43f06415a58021ec4184da2ef03e1b3}{eina\+\_\+thread\+\_\+cancellable\+\_\+run()}}!
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em exec\+\_\+cleanup} & if E\+I\+N\+A\+\_\+\+T\+R\+UE, the function registered with \mbox{\hyperlink{group__Eina__Thread__Group_gacbfb74a9554f86829a021b6074ef9b31}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+S\+H()}} will be executed.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Thread__Group_gac43f06415a58021ec4184da2ef03e1b3}{eina\+\_\+thread\+\_\+cancellable\+\_\+run()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


Referenced by eina\+\_\+thread\+\_\+cancellable\+\_\+run().



\subsection{Typedef Documentation}
\mbox{\Hypertarget{group__Eina__Thread__Group_ga117083fbebdb7789f41e57315f6b8a59}\label{group__Eina__Thread__Group_ga117083fbebdb7789f41e57315f6b8a59}} 
\index{Thread@{Thread}!Eina\+\_\+\+Thread\+\_\+\+Cancellable\+\_\+\+Run\+\_\+\+Cb@{Eina\+\_\+\+Thread\+\_\+\+Cancellable\+\_\+\+Run\+\_\+\+Cb}}
\index{Eina\+\_\+\+Thread\+\_\+\+Cancellable\+\_\+\+Run\+\_\+\+Cb@{Eina\+\_\+\+Thread\+\_\+\+Cancellable\+\_\+\+Run\+\_\+\+Cb}!Thread@{Thread}}
\subsubsection{\texorpdfstring{Eina\+\_\+\+Thread\+\_\+\+Cancellable\+\_\+\+Run\+\_\+\+Cb}{Eina\_Thread\_Cancellable\_Run\_Cb}}
{\footnotesize\ttfamily Eina\+\_\+\+Thread\+\_\+\+Cancellable\+\_\+\+Run\+\_\+\+Cb}



Type for the definition of a cancellable callback to run. 

\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


\subsection{Function Documentation}
\mbox{\Hypertarget{group__Eina__Thread__Group_gacdaf8730f9e593fa025de487609524fa}\label{group__Eina__Thread__Group_gacdaf8730f9e593fa025de487609524fa}} 
\index{Thread@{Thread}!eina\+\_\+thread\+\_\+self@{eina\+\_\+thread\+\_\+self}}
\index{eina\+\_\+thread\+\_\+self@{eina\+\_\+thread\+\_\+self}!Thread@{Thread}}
\subsubsection{\texorpdfstring{eina\+\_\+thread\+\_\+self()}{eina\_thread\_self()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}} eina\+\_\+thread\+\_\+self (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Returns identifier of the current thread. 

\begin{DoxyReturn}{Returns}
identifier of current thread. 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}


Referenced by efl\+\_\+object\+\_\+init().

\mbox{\Hypertarget{group__Eina__Thread__Group_gacbccfd9039ea4e1555af9ded7d6ef571}\label{group__Eina__Thread__Group_gacbccfd9039ea4e1555af9ded7d6ef571}} 
\index{Thread@{Thread}!eina\+\_\+thread\+\_\+equal@{eina\+\_\+thread\+\_\+equal}}
\index{eina\+\_\+thread\+\_\+equal@{eina\+\_\+thread\+\_\+equal}!Thread@{Thread}}
\subsubsection{\texorpdfstring{eina\+\_\+thread\+\_\+equal()}{eina\_thread\_equal()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+thread\+\_\+equal (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}}}]{t1,  }\item[{\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}}}]{t2 }\end{DoxyParamCaption})}



Checks if two thread identifiers are the same. 


\begin{DoxyParams}{Parameters}
{\em t1} & first thread identifier to compare. \\
\hline
{\em t2} & second thread identifier to compare. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE}} if they are equal, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE}} otherwise. 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__Thread__Group_gaac5a08be9aabf19e56de715f6a9e8af5}\label{group__Eina__Thread__Group_gaac5a08be9aabf19e56de715f6a9e8af5}} 
\index{Thread@{Thread}!eina\+\_\+thread\+\_\+create@{eina\+\_\+thread\+\_\+create}}
\index{eina\+\_\+thread\+\_\+create@{eina\+\_\+thread\+\_\+create}!Thread@{Thread}}
\subsubsection{\texorpdfstring{eina\+\_\+thread\+\_\+create()}{eina\_thread\_create()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+thread\+\_\+create (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}} $\ast$}]{t,  }\item[{\mbox{\hyperlink{group__Eina__Thread__Group_ga240e6f04f3d6a051f2b16d0c2403cfc8}{Eina\+\_\+\+Thread\+\_\+\+Priority}}}]{prio,  }\item[{int}]{affinity,  }\item[{\mbox{\hyperlink{group__Eina__Thread__Group_ga4621fcf4fac930dc7f781240bc9dfb26}{Eina\+\_\+\+Thread\+\_\+\+Cb}}}]{func,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Creates a new thread, setting its priority and affinity. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em t} & where to return the thread identifier. Must {\bfseries not} be {\ttfamily N\+U\+LL}. \\
\hline
 & {\em prio} & thread priority to use, usually E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+B\+A\+C\+K\+G\+R\+O\+U\+ND \\
\hline
 & {\em affinity} & thread affinity to use. To not set affinity use {\ttfamily -\/1}. \\
\hline
 & {\em func} & function to run in the thread. Must {\bfseries not} be {\ttfamily N\+U\+LL}. \\
\hline
 & {\em data} & context data to provide to {\itshape func} as first argument. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{E\+I\+N\+A\+\_\+\+T\+R\+UE}} if thread was created, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{E\+I\+N\+A\+\_\+\+F\+A\+L\+SE}} on errors. 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__Thread__Group_ga8f0b8fa727aa899cd88e9d2909f8a588}\label{group__Eina__Thread__Group_ga8f0b8fa727aa899cd88e9d2909f8a588}} 
\index{Thread@{Thread}!eina\+\_\+thread\+\_\+join@{eina\+\_\+thread\+\_\+join}}
\index{eina\+\_\+thread\+\_\+join@{eina\+\_\+thread\+\_\+join}!Thread@{Thread}}
\subsubsection{\texorpdfstring{eina\+\_\+thread\+\_\+join()}{eina\_thread\_join()}}
{\footnotesize\ttfamily void$\ast$ eina\+\_\+thread\+\_\+join (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}}}]{t }\end{DoxyParamCaption})}



Joins a currently running thread, waiting until it finishes. 

This function will block the current thread until {\itshape t} finishes. The returned value is the one returned by {\itshape t} {\ttfamily func()} and may be {\ttfamily N\+U\+LL} on errors. See \mbox{\hyperlink{group__Eina__Error__Group}{Error}} to identify problems.


\begin{DoxyParams}{Parameters}
{\em t} & thread identifier to wait. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
value returned by {\itshape t} creation function {\ttfamily func()} or {\ttfamily N\+U\+LL} on errors. Check error with \mbox{\hyperlink{group__Eina__Error__Group}{Error}}. If the thread was canceled, it will return E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+J\+O\+I\+N\+\_\+\+C\+A\+N\+C\+E\+L\+ED. 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__Thread__Group_gafe38e131374f93f1e2b1b1dcd08557f2}\label{group__Eina__Thread__Group_gafe38e131374f93f1e2b1b1dcd08557f2}} 
\index{Thread@{Thread}!eina\+\_\+thread\+\_\+name\+\_\+set@{eina\+\_\+thread\+\_\+name\+\_\+set}}
\index{eina\+\_\+thread\+\_\+name\+\_\+set@{eina\+\_\+thread\+\_\+name\+\_\+set}!Thread@{Thread}}
\subsubsection{\texorpdfstring{eina\+\_\+thread\+\_\+name\+\_\+set()}{eina\_thread\_name\_set()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+thread\+\_\+name\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}}}]{t,  }\item[{const char $\ast$}]{name }\end{DoxyParamCaption})}



Sets the name of a given thread for debugging purposes. 

This maps to the pthread\+\_\+setname\+\_\+np() G\+NU extension or similar if available. The name may be limited in size (possibly 16 characters including the null byte terminator). This is useful for debugging to name a thread so external tools can display a meaningful name attached to the thread.


\begin{DoxyParams}{Parameters}
{\em t} & thread to set the name of \\
\hline
{\em name} & a string to name the thread -\/ this cannot be N\+U\+LL \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+T\+R\+UE if it succeeds in setting the name or E\+I\+N\+A\+\_\+\+F\+A\+L\+SE otherwise. 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+16 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, and E\+I\+N\+A\+\_\+\+T\+R\+UE.

\mbox{\Hypertarget{group__Eina__Thread__Group_ga880530701a26813da42f215be0f5751c}\label{group__Eina__Thread__Group_ga880530701a26813da42f215be0f5751c}} 
\index{Thread@{Thread}!eina\+\_\+thread\+\_\+cancel@{eina\+\_\+thread\+\_\+cancel}}
\index{eina\+\_\+thread\+\_\+cancel@{eina\+\_\+thread\+\_\+cancel}!Thread@{Thread}}
\subsubsection{\texorpdfstring{eina\+\_\+thread\+\_\+cancel()}{eina\_thread\_cancel()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+thread\+\_\+cancel (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Thread__Group_ga1e85dc4b7b825ef36a5ae9d8b710523a}{Eina\+\_\+\+Thread}}}]{t }\end{DoxyParamCaption})}



Attempts to cancel a running thread. 

This function sends a cancellation request to the thread, however that request is only fulfilled if the thread is cancellable (\mbox{\hyperlink{group__Eina__Thread__Group_ga0236a523c70528b719be7114c0876e04}{eina\+\_\+thread\+\_\+cancellable\+\_\+set()}} with E\+I\+N\+A\+\_\+\+T\+R\+UE as first parameter) and it will wait for a cancellation point, be \mbox{\hyperlink{group__Eina__Thread__Group_ga480968b42f90c1ba4dd09067675f98eb}{eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint()}} or some syscall as defined in man\+:pthreads(7).

A thread that was canceled will return E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+J\+O\+I\+N\+\_\+\+C\+A\+N\+C\+E\+L\+ED when \mbox{\hyperlink{group__Eina__Thread__Group_ga8f0b8fa727aa899cd88e9d2909f8a588}{eina\+\_\+thread\+\_\+join()}} is called.


\begin{DoxyParams}{Parameters}
{\em t} & Thread to cancel.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+F\+A\+L\+SE if thread was not running, E\+I\+N\+A\+\_\+\+T\+R\+UE otherwise. Note that if a thread is not cancellable and it is running, this function will return E\+I\+N\+A\+\_\+\+T\+R\+U\+E!
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE.



Referenced by ecore\+\_\+thread\+\_\+cancel().

\mbox{\Hypertarget{group__Eina__Thread__Group_ga0236a523c70528b719be7114c0876e04}\label{group__Eina__Thread__Group_ga0236a523c70528b719be7114c0876e04}} 
\index{Thread@{Thread}!eina\+\_\+thread\+\_\+cancellable\+\_\+set@{eina\+\_\+thread\+\_\+cancellable\+\_\+set}}
\index{eina\+\_\+thread\+\_\+cancellable\+\_\+set@{eina\+\_\+thread\+\_\+cancellable\+\_\+set}!Thread@{Thread}}
\subsubsection{\texorpdfstring{eina\+\_\+thread\+\_\+cancellable\+\_\+set()}{eina\_thread\_cancellable\_set()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+thread\+\_\+cancellable\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{cancellable,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} $\ast$}]{was\+\_\+cancellable }\end{DoxyParamCaption})}



Enables or disables if the current thread can be canceled. 

By default \mbox{\hyperlink{group__Eina__Thread__Group_gaac5a08be9aabf19e56de715f6a9e8af5}{eina\+\_\+thread\+\_\+create()}} will return a thread with cancellation disabled. One can enable the cancellation by using E\+I\+N\+A\+\_\+\+T\+R\+UE in {\itshape cancellable}.

Eina threads follow pthread\+\_\+setcanceltype() P\+T\+H\+R\+E\+A\+D\+\_\+\+C\+A\+N\+C\+E\+L\+\_\+\+D\+E\+F\+E\+R\+R\+ED, that is, the actual termination will wait for a cancellation point, usually a syscall defined in man\+:pthreads(7) or an explicit cancellation point defined with \mbox{\hyperlink{group__Eina__Thread__Group_ga480968b42f90c1ba4dd09067675f98eb}{eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint()}}.

In order to provide cleanup around critical blocks use \mbox{\hyperlink{group__Eina__Thread__Group_gacbfb74a9554f86829a021b6074ef9b31}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+S\+H()}} and \mbox{\hyperlink{group__Eina__Thread__Group_gad33b7c1ec50b300be47e53832ff70b90}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+O\+P()}} macros (which maps to pthread\+\_\+cleanup\+\_\+push() and pthread\+\_\+cleanup\+\_\+pop()), or the helper function \mbox{\hyperlink{group__Eina__Thread__Group_gac43f06415a58021ec4184da2ef03e1b3}{eina\+\_\+thread\+\_\+cancellable\+\_\+run()}} which does the pair for you.


\begin{DoxyParams}{Parameters}
{\em cancellable} & If E\+I\+N\+A\+\_\+\+T\+R\+UE, this thread will be accept cancellation requests. If E\+I\+N\+A\+\_\+\+F\+A\+L\+SE -- the default, it will ignore cancellation requests. \\
\hline
{\em was\+\_\+cancellable} & If non-\/\+N\+U\+LL, will return the previous state, shall you want to restore.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+T\+R\+UE if it succeeds in setting the cancellable state or E\+I\+N\+A\+\_\+\+F\+A\+L\+SE otherwise.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Thread__Group_ga480968b42f90c1ba4dd09067675f98eb}{eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint()}} 

\mbox{\hyperlink{group__Eina__Thread__Group_gacbfb74a9554f86829a021b6074ef9b31}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+S\+H()}} 

\mbox{\hyperlink{group__Eina__Thread__Group_gad33b7c1ec50b300be47e53832ff70b90}{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+O\+P()}} 

\mbox{\hyperlink{group__Eina__Thread__Group_gac43f06415a58021ec4184da2ef03e1b3}{eina\+\_\+thread\+\_\+cancellable\+\_\+run()}} 

\mbox{\hyperlink{group__Eina__Thread__Group_ga880530701a26813da42f215be0f5751c}{eina\+\_\+thread\+\_\+cancel()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


Referenced by eina\+\_\+thread\+\_\+cancellable\+\_\+run().

\mbox{\Hypertarget{group__Eina__Thread__Group_ga480968b42f90c1ba4dd09067675f98eb}\label{group__Eina__Thread__Group_ga480968b42f90c1ba4dd09067675f98eb}} 
\index{Thread@{Thread}!eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint@{eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint}}
\index{eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint@{eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint}!Thread@{Thread}}
\subsubsection{\texorpdfstring{eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint()}{eina\_thread\_cancel\_checkpoint()}}
{\footnotesize\ttfamily void eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



If the current thread is cancellable, this introduces a cancellation check point. 

Otherwise it\textquotesingle{}s a no-\/operation.

Eina threads follow pthread\+\_\+setcanceltype() P\+T\+H\+R\+E\+A\+D\+\_\+\+C\+A\+N\+C\+E\+L\+\_\+\+D\+E\+F\+E\+R\+R\+ED, that is, the actual termination will wait for a cancellation point, usually a syscall defined in man\+:pthreads(7) or an explicit cancellation point defined with this function.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Thread__Group_ga480968b42f90c1ba4dd09067675f98eb}{eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__Thread__Group_gac43f06415a58021ec4184da2ef03e1b3}\label{group__Eina__Thread__Group_gac43f06415a58021ec4184da2ef03e1b3}} 
\index{Thread@{Thread}!eina\+\_\+thread\+\_\+cancellable\+\_\+run@{eina\+\_\+thread\+\_\+cancellable\+\_\+run}}
\index{eina\+\_\+thread\+\_\+cancellable\+\_\+run@{eina\+\_\+thread\+\_\+cancellable\+\_\+run}!Thread@{Thread}}
\subsubsection{\texorpdfstring{eina\+\_\+thread\+\_\+cancellable\+\_\+run()}{eina\_thread\_cancellable\_run()}}
{\footnotesize\ttfamily void$\ast$ eina\+\_\+thread\+\_\+cancellable\+\_\+run (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Thread__Group_ga117083fbebdb7789f41e57315f6b8a59}{Eina\+\_\+\+Thread\+\_\+\+Cancellable\+\_\+\+Run\+\_\+\+Cb}}}]{cb,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_gadbac560ba2bca5c61d97bfbb542018f3}{Eina\+\_\+\+Free\+\_\+\+Cb}}}]{cleanup\+\_\+cb,  }\item[{void $\ast$}]{data }\end{DoxyParamCaption})}



This function will setup cleanup callback, turn the thread cancellable, execute the given callback, reset the cancellable state to its old value, run the cleanup callback and then return the callback return value. 

\begin{DoxyNote}{Note}
cleanup\+\_\+cb is configured {\bfseries before} the thread is made cancellable, thus it {\bfseries will} be executed while {\itshape cb} may not in the case the thread was already canceled and that was pending.
\end{DoxyNote}
This helper does exactly the following code. Should you need a slightly different behavior, use the base calls yourself.


\begin{DoxyCode}
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}} old = \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\_FALSE}};
\textcolor{keywordtype}{void} *ret;

\mbox{\hyperlink{group__Eina__Thread__Group_gacbfb74a9554f86829a021b6074ef9b31}{EINA\_THREAD\_CLEANUP\_PUSH}}(cleanup\_cb, data);
\mbox{\hyperlink{group__Eina__Thread__Group_ga0236a523c70528b719be7114c0876e04}{eina\_thread\_cancellable\_set}}(\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}}, &old); \textcolor{comment}{// is a cancellation
       point}
ret = cb(data); \textcolor{comment}{// may not run if was previously canceled}
\mbox{\hyperlink{group__Eina__Thread__Group_gad33b7c1ec50b300be47e53832ff70b90}{EINA\_THREAD\_CLEANUP\_POP}}(\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});
\mbox{\hyperlink{group__Eina__Thread__Group_ga0236a523c70528b719be7114c0876e04}{eina\_thread\_cancellable\_set}}(old, NULL);
\textcolor{keywordflow}{return} ret;
\end{DoxyCode}



\begin{DoxyParams}{Parameters}
{\em cb} & a cancellable callback to possibly run. The callback {\bfseries may} not be executed if the thread had a pending cancellation request. During its execution the callback may be canceled at explicit cancellation points using \mbox{\hyperlink{group__Eina__Thread__Group_ga480968b42f90c1ba4dd09067675f98eb}{eina\+\_\+thread\+\_\+cancel\+\_\+checkpoint()}}, as well as some syscalls defined in man\+:pthreads(7). \\
\hline
{\em cleanup\+\_\+cb} & a cleanup callback to be executed regardless of the thread being canceled or not. This function will be executed even if {\itshape cb} wasn\textquotesingle{}t. \\
\hline
{\em data} & context to give to both {\itshape cb} and {\itshape cleanup\+\_\+cb}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the return value of {\itshape cb}. If the thread was canceled, this function will not return.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+thread\+\_\+cancellable\+\_\+set(), E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+OP, E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+C\+L\+E\+A\+N\+U\+P\+\_\+\+P\+U\+SH, and E\+I\+N\+A\+\_\+\+T\+R\+UE.



\subsection{Variable Documentation}
\mbox{\Hypertarget{group__Eina__Thread__Group_gaca6773079b92837bd301c2976575c399}\label{group__Eina__Thread__Group_gaca6773079b92837bd301c2976575c399}} 
\index{Thread@{Thread}!E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+J\+O\+I\+N\+\_\+\+C\+A\+N\+C\+E\+L\+ED@{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+J\+O\+I\+N\+\_\+\+C\+A\+N\+C\+E\+L\+ED}}
\index{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+J\+O\+I\+N\+\_\+\+C\+A\+N\+C\+E\+L\+ED@{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+J\+O\+I\+N\+\_\+\+C\+A\+N\+C\+E\+L\+ED}!Thread@{Thread}}
\subsubsection{\texorpdfstring{E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+J\+O\+I\+N\+\_\+\+C\+A\+N\+C\+E\+L\+ED}{EINA\_THREAD\_JOIN\_CANCELED}}
{\footnotesize\ttfamily const void$\ast$ E\+I\+N\+A\+\_\+\+T\+H\+R\+E\+A\+D\+\_\+\+J\+O\+I\+N\+\_\+\+C\+A\+N\+C\+E\+L\+ED}



The return value of \mbox{\hyperlink{group__Eina__Thread__Group_ga8f0b8fa727aa899cd88e9d2909f8a588}{eina\+\_\+thread\+\_\+join()}} if it was canceled with \mbox{\hyperlink{group__Eina__Thread__Group_ga880530701a26813da42f215be0f5751c}{eina\+\_\+thread\+\_\+cancel()}}. 

A thread must be explicitly flagged as cancellable with \mbox{\hyperlink{group__Eina__Thread__Group_ga0236a523c70528b719be7114c0876e04}{eina\+\_\+thread\+\_\+cancellable\+\_\+set()}}, by default it\textquotesingle{}s not and this value shouldn\textquotesingle{}t be returned.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Thread__Group_ga8f0b8fa727aa899cd88e9d2909f8a588}{eina\+\_\+thread\+\_\+join()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}
