\hypertarget{struct__Eina__Future__Race__Result}{}\doxysection{\+\_\+\+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.  


\doxysubsection*{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}


\doxysubsection{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}{0}
\DoxyCodeLine{\textcolor{keyword}{static} \mbox{\hyperlink{struct__Eina__Value}{Eina\_Value}}}
\DoxyCodeLine{\_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)}
\DoxyCodeLine{\{}
\DoxyCodeLine{   \textcolor{comment}{//code...}}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Eina__Value__Struct}{Eina\_Value\_Struct}} st;}
\DoxyCodeLine{   \mbox{\hyperlink{struct__Eina__Future__Race__Result}{Eina\_Future\_Race\_Result}} *rr;}
\DoxyCodeLine{   \mbox{\hyperlink{group__Eina__Value__Value__Group_ga6f088fe6c6127d808cdf214b355cbdeb}{eina\_value\_get}}(v, \&st);}
\DoxyCodeLine{   rr = st.\mbox{\hyperlink{struct__Eina__Value__Struct_a9981fecb227d833bb860fa6d128ee66a}{memory}};}
\DoxyCodeLine{   printf(\textcolor{stringliteral}{"{}Winning future index: \%u\(\backslash\)n"{}}, rr-\/>index);}
\DoxyCodeLine{   \textcolor{comment}{//more code..}}
\DoxyCodeLine{   \textcolor{keywordflow}{return} v;}
\DoxyCodeLine{\}}

\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_ga8b2461685ba3e12305bd69730a83dbcb}{EINA\+\_\+\+PROMISE\+\_\+\+RACE\+\_\+\+STRUCT\+\_\+\+DESC}} 
\end{DoxySeeAlso}
