\hypertarget{struct__Eina__Future__Race__Result}{}\section{\+\_\+\+Eina\+\_\+\+Future\+\_\+\+Race\+\_\+\+Result Struct Reference}
\label{struct__Eina__Future__Race__Result}\index{\+\_\+\+Eina\+\_\+\+Future\+\_\+\+Race\+\_\+\+Result@{\+\_\+\+Eina\+\_\+\+Future\+\_\+\+Race\+\_\+\+Result}}


The struct that is used to store the race result.  


\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{struct__Eina__Future__Race__Result_a4e4c483399fffa7fdcb5d93b05092bb8}\label{struct__Eina__Future__Race__Result_a4e4c483399fffa7fdcb5d93b05092bb8}} 
\mbox{\hyperlink{group__Eina__Value__Group_ga7985e8af6e956ae31b381bf829173cc0}{Eina\+\_\+\+Value}} \mbox{\hyperlink{struct__Eina__Future__Race__Result_a4e4c483399fffa7fdcb5d93b05092bb8}{value}}
\begin{DoxyCompactList}\small\item\em The race result. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{struct__Eina__Future__Race__Result_a48e58e442e3cf78dbfe34170edf9cbe0}\label{struct__Eina__Future__Race__Result_a48e58e442e3cf78dbfe34170edf9cbe0}} 
unsigned int \mbox{\hyperlink{struct__Eina__Future__Race__Result_a48e58e442e3cf78dbfe34170edf9cbe0}{index}}
\begin{DoxyCompactList}\small\item\em The future index that won the race. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
The struct that is used to store the race result. 

When using \mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}} and friends, the future result will be reported as a struct. The values can be obtained using \mbox{\hyperlink{group__Eina__Value__Struct__Group_ga07a7cc420f03a247dffe4d13ce1ad6c5}{eina\+\_\+value\+\_\+struct\+\_\+get()}} or one could access the struct directly such as this example\+:


\begin{DoxyCode}
\textcolor{keyword}{static} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}}
\_race\_cb(\textcolor{keyword}{const} \textcolor{keywordtype}{void} *data \mbox{\hyperlink{group__Eina__Types__Group_ga82d751be730f849719ca292f9558be87}{EINA\_UNUSED}}, \textcolor{keyword}{const} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}} v)
\{
   \textcolor{comment}{//code...}
   \mbox{\hyperlink{struct__Eina__Value__Struct}{Eina\_Value\_Struct}} st;
   \mbox{\hyperlink{struct__Eina__Future__Race__Result}{Eina\_Future\_Race\_Result}} *rr;
   \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(v, &st);
   rr = st.\mbox{\hyperlink{struct__Eina__Value__Struct_a9981fecb227d833bb860fa6d128ee66a}{memory}};
   printf(\textcolor{stringliteral}{"Winning future index: %u\(\backslash\)n"}, rr->\mbox{\hyperlink{struct__Eina__Future__Race__Result_a48e58e442e3cf78dbfe34170edf9cbe0}{index}});
   \textcolor{comment}{//more code..}
   \textcolor{keywordflow}{return} v;
\}
\end{DoxyCode}


\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Future_ga13d85b5282b02260407c103690b2b3f4}{eina\+\_\+promise\+\_\+race\+\_\+array()}} 

\mbox{\hyperlink{group__Eina__Future_ga2c63774e66100dc5f4b91f88f0efc5f1}{eina\+\_\+future\+\_\+race\+\_\+array()}} 

\mbox{\hyperlink{group__Eina__Future_gac0bf547a87e9bea1e589e8a6e13576e7}{eina\+\_\+promise\+\_\+race()}} 

\mbox{\hyperlink{group__Eina__Future_ga6a39aa29dad9e9ba9038908758f20c32}{eina\+\_\+future\+\_\+race()}} 

\mbox{\hyperlink{group__Eina__Future_ga64c93dabf373a53ecbd56615232a4966}{E\+I\+N\+A\+\_\+\+P\+R\+O\+M\+I\+S\+E\+\_\+\+R\+A\+C\+E\+\_\+\+S\+T\+R\+U\+C\+T\+\_\+\+D\+E\+SC}} 
\end{DoxySeeAlso}
