\hypertarget{event__compat_8h}{\section{opal/mca/event/libevent2013/libevent/include/event2/event\+\_\+compat.h File Reference}
\label{event__compat_8h}\index{opal/mca/event/libevent2013/libevent/include/event2/event\+\_\+compat.\+h@{opal/mca/event/libevent2013/libevent/include/event2/event\+\_\+compat.\+h}}
}


Potentially non-\/threadsafe versions of the functions in event.\+h\+: provided only for backwards compatibility.  


{\ttfamily \#include $<$event2/event-\/config.\+h$>$}\\*
{\ttfamily \#include $<$event2/util.\+h$>$}\\*
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{event__compat_8h_afa5d72155d72931332ed0656fc8fb0a1}{\#define {\bfseries evtimer\+\_\+set}(ev, cb, arg)~\hyperlink{event__compat_8h_ace184d66066e9bac013779d8f6921d11}{event\+\_\+set}((ev), -\/1, 0, (cb), (arg))}\label{event__compat_8h_afa5d72155d72931332ed0656fc8fb0a1}

\item 
\hypertarget{event__compat_8h_a0c943992e3125ac5a28cde48216d334c}{\#define {\bfseries evsignal\+\_\+set}(ev, x, cb, arg)~\hyperlink{event__compat_8h_ace184d66066e9bac013779d8f6921d11}{event\+\_\+set}((ev), (x), \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a59b7e95284ac1a197969d42ee9441ece}{E\+V\+\_\+\+S\+I\+G\+N\+A\+L}$\vert$\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a3c4947a60eb6d09327c61f89135f9f37}{E\+V\+\_\+\+P\+E\+R\+S\+I\+S\+T}, (cb), (arg))}\label{event__compat_8h_a0c943992e3125ac5a28cde48216d334c}

\item 
\hypertarget{event__compat_8h_a2b1c2a40ad619b9c3ca2cb82a126e2e4}{\#define {\bfseries E\+V\+E\+N\+T\+\_\+\+F\+D}(ev)~((int)\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_aee0c9c3fc7c997e4d4b77bdcdf321ee6}{event\+\_\+get\+\_\+fd}(ev))}\label{event__compat_8h_a2b1c2a40ad619b9c3ca2cb82a126e2e4}

\item 
\hypertarget{event__compat_8h_a899cb8dd0c2bf1289c0069e4649326ad}{\#define {\bfseries E\+V\+E\+N\+T\+\_\+\+S\+I\+G\+N\+A\+L}(ev)~\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a69cc368a9137187726ef371a06f9cc9f}{event\+\_\+get\+\_\+signal}(ev)}\label{event__compat_8h_a899cb8dd0c2bf1289c0069e4649326ad}

\end{DoxyCompactItemize}
\begin{Indent}{\bf timeout\+\_\+$\ast$ macros}\par
{\em \begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000035}{Deprecated}]These macros are deprecated because their naming is inconsisten with the rest of Libevent. Use the evtimer\+\_\+$\ast$ macros instead.\end{DoxyRefDesc}
}\begin{DoxyCompactItemize}
\item 
\hypertarget{event__compat_8h_afaf6ea49aab66ec47acd9f5b629bfe5e}{\#define {\bfseries timeout\+\_\+add}(ev, tv)~\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a44df7b40859b56f2c866adb02dabdd9e}{event\+\_\+add}((ev), (tv))}\label{event__compat_8h_afaf6ea49aab66ec47acd9f5b629bfe5e}

\item 
\hypertarget{event__compat_8h_a85e9253a4d75703692dd912be4a87aab}{\#define {\bfseries timeout\+\_\+set}(ev, cb, arg)~\hyperlink{event__compat_8h_ace184d66066e9bac013779d8f6921d11}{event\+\_\+set}((ev), -\/1, 0, (cb), (arg))}\label{event__compat_8h_a85e9253a4d75703692dd912be4a87aab}

\item 
\hypertarget{event__compat_8h_a8febdc39e7def3c49deb1e9faa7fc537}{\#define {\bfseries timeout\+\_\+del}(ev)~\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a30a8cb96af49d18388f64de73a2d4258}{event\+\_\+del}(ev)}\label{event__compat_8h_a8febdc39e7def3c49deb1e9faa7fc537}

\item 
\hypertarget{event__compat_8h_a221671efe98942558743d1a66669b494}{\#define {\bfseries timeout\+\_\+pending}(ev, tv)~\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a49773a4e3e46f60e488ac37fb46950d9}{event\+\_\+pending}((ev), \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a37ef4b6056484f5580f7d72fcf46fccf}{E\+V\+\_\+\+T\+I\+M\+E\+O\+U\+T}, (tv))}\label{event__compat_8h_a221671efe98942558743d1a66669b494}

\item 
\hypertarget{event__compat_8h_a960c63760b26a73350a2bd3618fe4d66}{\#define {\bfseries timeout\+\_\+initialized}(ev)~\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a5be4fbc16d90915a7d1b21ed3bae40c0}{event\+\_\+initialized}(ev)}\label{event__compat_8h_a960c63760b26a73350a2bd3618fe4d66}

\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf signal\+\_\+$\ast$ macros}\par
{\em \begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000036}{Deprecated}]These macros are deprecated because their naming is inconsisten with the rest of Libevent. Use the evsignal\+\_\+$\ast$ macros instead.\end{DoxyRefDesc}
}\begin{DoxyCompactItemize}
\item 
\hypertarget{event__compat_8h_ac26a36d05805ed2fadc7b2dcbf881020}{\#define {\bfseries signal\+\_\+add}(ev, tv)~\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a44df7b40859b56f2c866adb02dabdd9e}{event\+\_\+add}((ev), (tv))}\label{event__compat_8h_ac26a36d05805ed2fadc7b2dcbf881020}

\item 
\hypertarget{event__compat_8h_a1e620dc98462b393821cf84cb02c7e5c}{\#define {\bfseries signal\+\_\+set}(ev, x, cb, arg)~\hyperlink{event__compat_8h_ace184d66066e9bac013779d8f6921d11}{event\+\_\+set}((ev), (x), \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a59b7e95284ac1a197969d42ee9441ece}{E\+V\+\_\+\+S\+I\+G\+N\+A\+L}$\vert$\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a3c4947a60eb6d09327c61f89135f9f37}{E\+V\+\_\+\+P\+E\+R\+S\+I\+S\+T}, (cb), (arg))}\label{event__compat_8h_a1e620dc98462b393821cf84cb02c7e5c}

\item 
\hypertarget{event__compat_8h_a77fc0b01f4acf885075e9720faf91906}{\#define {\bfseries signal\+\_\+del}(ev)~\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a30a8cb96af49d18388f64de73a2d4258}{event\+\_\+del}(ev)}\label{event__compat_8h_a77fc0b01f4acf885075e9720faf91906}

\item 
\hypertarget{event__compat_8h_a07458695d3403c8c0bcec356a9d243c7}{\#define {\bfseries signal\+\_\+pending}(ev, tv)~\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a49773a4e3e46f60e488ac37fb46950d9}{event\+\_\+pending}((ev), \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a59b7e95284ac1a197969d42ee9441ece}{E\+V\+\_\+\+S\+I\+G\+N\+A\+L}, (tv))}\label{event__compat_8h_a07458695d3403c8c0bcec356a9d243c7}

\item 
\hypertarget{event__compat_8h_a049ba1588cd2d372b2617f1ff336282b}{\#define {\bfseries signal\+\_\+initialized}(ev)~\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a5be4fbc16d90915a7d1b21ed3bae40c0}{event\+\_\+initialized}(ev)}\label{event__compat_8h_a049ba1588cd2d372b2617f1ff336282b}

\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structevent__base}{event\+\_\+base} $\ast$ \hyperlink{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}{event\+\_\+init} (void)
\begin{DoxyCompactList}\small\item\em Initialize the event A\+P\+I. \end{DoxyCompactList}\item 
int \hyperlink{event__compat_8h_a1f4991bceb8aaf33545d1fc857230b51}{event\+\_\+dispatch} (void)
\begin{DoxyCompactList}\small\item\em Loop to process events. \end{DoxyCompactList}\item 
int \hyperlink{event__compat_8h_a765c1875642fc730addf04e9433f6448}{event\+\_\+loop} (int)
\begin{DoxyCompactList}\small\item\em Handle events. \end{DoxyCompactList}\item 
int \hyperlink{event__compat_8h_a2e3d894ac7986bb4967ebfe67a2d9977}{event\+\_\+loopexit} (const struct timeval $\ast$)
\begin{DoxyCompactList}\small\item\em Exit the event loop after the specified time. \end{DoxyCompactList}\item 
int \hyperlink{event__compat_8h_a3a5c57caea1d97160f6990b3deeb6961}{event\+\_\+loopbreak} (void)
\begin{DoxyCompactList}\small\item\em Abort the active \hyperlink{event__compat_8h_a765c1875642fc730addf04e9433f6448}{event\+\_\+loop()} immediately. \end{DoxyCompactList}\item 
int \hyperlink{event__compat_8h_a074cf31709035ec2b7b660374bbd3b90}{event\+\_\+once} (\hyperlink{opal_2mca_2event_2libevent2013_2libevent_2include_2event2_2util_8h_a7ef0023565082a65020f6e56be59fd0b}{evutil\+\_\+socket\+\_\+t}, short, void($\ast$)(\hyperlink{opal_2mca_2event_2libevent2013_2libevent_2include_2event2_2util_8h_a7ef0023565082a65020f6e56be59fd0b}{evutil\+\_\+socket\+\_\+t}, short, void $\ast$), void $\ast$, const struct timeval $\ast$)
\begin{DoxyCompactList}\small\item\em Schedule a one-\/time event to occur. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{event__compat_8h_a8a03c9175e0578017a384b4c039b090f}{event\+\_\+get\+\_\+method} (void)
\begin{DoxyCompactList}\small\item\em Get the kernel event notification mechanism used by Libevent. \end{DoxyCompactList}\item 
int \hyperlink{event__compat_8h_ac98d83bce2fe3e97ac655329fb30fccb}{event\+\_\+priority\+\_\+init} (int)
\begin{DoxyCompactList}\small\item\em Set the number of different event priorities. \end{DoxyCompactList}\item 
void \hyperlink{event__compat_8h_ace184d66066e9bac013779d8f6921d11}{event\+\_\+set} (struct \hyperlink{structevent}{event} $\ast$, \hyperlink{opal_2mca_2event_2libevent2013_2libevent_2include_2event2_2util_8h_a7ef0023565082a65020f6e56be59fd0b}{evutil\+\_\+socket\+\_\+t}, short, void($\ast$)(\hyperlink{opal_2mca_2event_2libevent2013_2libevent_2include_2event2_2util_8h_a7ef0023565082a65020f6e56be59fd0b}{evutil\+\_\+socket\+\_\+t}, short, void $\ast$), void $\ast$)
\begin{DoxyCompactList}\small\item\em Prepare an event structure to be added. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Potentially non-\/threadsafe versions of the functions in event.\+h\+: provided only for backwards compatibility. 

In the oldest versions of Libevent, \hyperlink{structevent__base}{event\+\_\+base} was not a first-\/class structure. Instead, there was a single event base that every function manipulated. Later, when separate event bases were added, the old functions that didn't take an \hyperlink{structevent__base}{event\+\_\+base} argument needed to work by manipulating the \char`\"{}current\char`\"{} event base. This could lead to thread-\/safety issues, and obscure, hard-\/to-\/diagnose bugs.

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000025}{Deprecated}]All functions in this file are by definition deprecated. \end{DoxyRefDesc}


\subsection{Function Documentation}
\hypertarget{event__compat_8h_a1f4991bceb8aaf33545d1fc857230b51}{\index{event\+\_\+compat.\+h@{event\+\_\+compat.\+h}!event\+\_\+dispatch@{event\+\_\+dispatch}}
\index{event\+\_\+dispatch@{event\+\_\+dispatch}!event\+\_\+compat.\+h@{event\+\_\+compat.\+h}}
\subsubsection[{event\+\_\+dispatch}]{\setlength{\rightskip}{0pt plus 5cm}int event\+\_\+dispatch (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{event__compat_8h_a1f4991bceb8aaf33545d1fc857230b51}


Loop to process events. 

Like \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a01e457364ed5216a8c7bc219033b946f}{event\+\_\+base\+\_\+dispatch()}, but uses the \char`\"{}current\char`\"{} base.

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000027}{Deprecated}]This function is deprecated because it is easily confused by multiple calls to \hyperlink{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}{event\+\_\+init()}, and because it is not safe for multithreaded use. The replacement is \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a01e457364ed5216a8c7bc219033b946f}{event\+\_\+base\+\_\+dispatch()}.\end{DoxyRefDesc}


\begin{DoxySeeAlso}{See also}
\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a01e457364ed5216a8c7bc219033b946f}{event\+\_\+base\+\_\+dispatch()}, \hyperlink{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}{event\+\_\+init()} 
\end{DoxySeeAlso}


References event\+\_\+loop().

\hypertarget{event__compat_8h_a8a03c9175e0578017a384b4c039b090f}{\index{event\+\_\+compat.\+h@{event\+\_\+compat.\+h}!event\+\_\+get\+\_\+method@{event\+\_\+get\+\_\+method}}
\index{event\+\_\+get\+\_\+method@{event\+\_\+get\+\_\+method}!event\+\_\+compat.\+h@{event\+\_\+compat.\+h}}
\subsubsection[{event\+\_\+get\+\_\+method}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ event\+\_\+get\+\_\+method (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{event__compat_8h_a8a03c9175e0578017a384b4c039b090f}


Get the kernel event notification mechanism used by Libevent. 

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000032}{Deprecated}]This function is obsolete, and has been replaced by \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a10914a893ed07dc8238d3274a9cbb3fc}{event\+\_\+base\+\_\+get\+\_\+method()}. Its use is deprecated because it relies on the \char`\"{}current\char`\"{} base configured by \hyperlink{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}{event\+\_\+init()}.\end{DoxyRefDesc}


\begin{DoxySeeAlso}{See also}
\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a10914a893ed07dc8238d3274a9cbb3fc}{event\+\_\+base\+\_\+get\+\_\+method()} 
\end{DoxySeeAlso}
\hypertarget{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}{\index{event\+\_\+compat.\+h@{event\+\_\+compat.\+h}!event\+\_\+init@{event\+\_\+init}}
\index{event\+\_\+init@{event\+\_\+init}!event\+\_\+compat.\+h@{event\+\_\+compat.\+h}}
\subsubsection[{event\+\_\+init}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf event\+\_\+base}$\ast$ event\+\_\+init (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}


Initialize the event A\+P\+I. 

The event A\+P\+I needs to be initialized with \hyperlink{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}{event\+\_\+init()} before it can be used. Sets the global current base that gets used for events that have no base associated with them.

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000026}{Deprecated}]This function is deprecated because it replaces the \char`\"{}current\char`\"{} \hyperlink{structevent__base}{event\+\_\+base}, and is totally unsafe for multithreaded use. The replacement is \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a4c16f1203aebc67f94791ae0240b7353}{event\+\_\+base\+\_\+new()}.\end{DoxyRefDesc}


\begin{DoxySeeAlso}{See also}
\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a2efd0ac7e54428d1941f212bc16ed9ce}{event\+\_\+base\+\_\+set()}, \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a4c16f1203aebc67f94791ae0240b7353}{event\+\_\+base\+\_\+new()} 
\end{DoxySeeAlso}


References event\+\_\+base\+\_\+new\+\_\+with\+\_\+config().

\hypertarget{event__compat_8h_a765c1875642fc730addf04e9433f6448}{\index{event\+\_\+compat.\+h@{event\+\_\+compat.\+h}!event\+\_\+loop@{event\+\_\+loop}}
\index{event\+\_\+loop@{event\+\_\+loop}!event\+\_\+compat.\+h@{event\+\_\+compat.\+h}}
\subsubsection[{event\+\_\+loop}]{\setlength{\rightskip}{0pt plus 5cm}int event\+\_\+loop (
\begin{DoxyParamCaption}
\item[{int}]{}
\end{DoxyParamCaption}
)}}\label{event__compat_8h_a765c1875642fc730addf04e9433f6448}


Handle events. 

This function behaves like \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_ad712706e6a763b6662f0eb03b3d8cd80}{event\+\_\+base\+\_\+loop()}, but uses the \char`\"{}current\char`\"{} base

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000028}{Deprecated}]This function is deprecated because it uses the event base from the last call to event\+\_\+init, and is therefore not safe for multithreaded use. The replacement is \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_ad712706e6a763b6662f0eb03b3d8cd80}{event\+\_\+base\+\_\+loop()}.\end{DoxyRefDesc}


\begin{DoxySeeAlso}{See also}
\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_ad712706e6a763b6662f0eb03b3d8cd80}{event\+\_\+base\+\_\+loop()}, \hyperlink{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}{event\+\_\+init()} 
\end{DoxySeeAlso}


References event\+\_\+base\+\_\+loop().



Referenced by event\+\_\+dispatch().

\hypertarget{event__compat_8h_a3a5c57caea1d97160f6990b3deeb6961}{\index{event\+\_\+compat.\+h@{event\+\_\+compat.\+h}!event\+\_\+loopbreak@{event\+\_\+loopbreak}}
\index{event\+\_\+loopbreak@{event\+\_\+loopbreak}!event\+\_\+compat.\+h@{event\+\_\+compat.\+h}}
\subsubsection[{event\+\_\+loopbreak}]{\setlength{\rightskip}{0pt plus 5cm}int event\+\_\+loopbreak (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{event__compat_8h_a3a5c57caea1d97160f6990b3deeb6961}


Abort the active \hyperlink{event__compat_8h_a765c1875642fc730addf04e9433f6448}{event\+\_\+loop()} immediately. 

This function behaves like event\+\_\+base\+\_\+loopbreakt(), except that it uses the \char`\"{}current\char`\"{} base.

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000030}{Deprecated}]This function is deprecated because it uses the event base from the last call to event\+\_\+init, and is therefore not safe for multithreaded use. The replacement is \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a07a7599e478e4031fa8cf52e26d8aa1e}{event\+\_\+base\+\_\+loopbreak()}.\end{DoxyRefDesc}


\begin{DoxySeeAlso}{See also}
\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a07a7599e478e4031fa8cf52e26d8aa1e}{event\+\_\+base\+\_\+loopbreak()}, \hyperlink{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}{event\+\_\+init()} 
\end{DoxySeeAlso}


References event\+\_\+base\+\_\+loopbreak().

\hypertarget{event__compat_8h_a2e3d894ac7986bb4967ebfe67a2d9977}{\index{event\+\_\+compat.\+h@{event\+\_\+compat.\+h}!event\+\_\+loopexit@{event\+\_\+loopexit}}
\index{event\+\_\+loopexit@{event\+\_\+loopexit}!event\+\_\+compat.\+h@{event\+\_\+compat.\+h}}
\subsubsection[{event\+\_\+loopexit}]{\setlength{\rightskip}{0pt plus 5cm}int event\+\_\+loopexit (
\begin{DoxyParamCaption}
\item[{const struct timeval $\ast$}]{}
\end{DoxyParamCaption}
)}}\label{event__compat_8h_a2e3d894ac7986bb4967ebfe67a2d9977}


Exit the event loop after the specified time. 

This function behaves like \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_ac2c66174ee5f10df65b9a9b62fca7dd9}{event\+\_\+base\+\_\+loopexit()}, except that it uses the \char`\"{}current\char`\"{} base.

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000029}{Deprecated}]This function is deprecated because it uses the event base from the last call to event\+\_\+init, and is therefore not safe for multithreaded use. The replacement is \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_ac2c66174ee5f10df65b9a9b62fca7dd9}{event\+\_\+base\+\_\+loopexit()}.\end{DoxyRefDesc}


\begin{DoxySeeAlso}{See also}
\hyperlink{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}{event\+\_\+init}, \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_ac2c66174ee5f10df65b9a9b62fca7dd9}{event\+\_\+base\+\_\+loopexit()} 
\end{DoxySeeAlso}


References E\+V\+\_\+\+T\+I\+M\+E\+O\+U\+T, and event\+\_\+once().

\hypertarget{event__compat_8h_a074cf31709035ec2b7b660374bbd3b90}{\index{event\+\_\+compat.\+h@{event\+\_\+compat.\+h}!event\+\_\+once@{event\+\_\+once}}
\index{event\+\_\+once@{event\+\_\+once}!event\+\_\+compat.\+h@{event\+\_\+compat.\+h}}
\subsubsection[{event\+\_\+once}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf event\+\_\+once} (
\begin{DoxyParamCaption}
\item[{{\bf evutil\+\_\+socket\+\_\+t}}]{, }
\item[{short}]{, }
\item[{void($\ast$)({\bf evutil\+\_\+socket\+\_\+t}, short, void $\ast$)}]{, }
\item[{void $\ast$}]{, }
\item[{const struct timeval $\ast$}]{}
\end{DoxyParamCaption}
)}}\label{event__compat_8h_a074cf31709035ec2b7b660374bbd3b90}


Schedule a one-\/time event to occur. 

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000031}{Deprecated}]This function is obsolete, and has been replaced by \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_acddee16b430c037ae061f966dc18eb9d}{event\+\_\+base\+\_\+once()}. Its use is deprecated because it relies on the \char`\"{}current\char`\"{} base configured by \hyperlink{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}{event\+\_\+init()}.\end{DoxyRefDesc}


\begin{DoxySeeAlso}{See also}
\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_acddee16b430c037ae061f966dc18eb9d}{event\+\_\+base\+\_\+once()} 
\end{DoxySeeAlso}


References event\+\_\+base\+\_\+once().



Referenced by event\+\_\+loopexit().

\hypertarget{event__compat_8h_ac98d83bce2fe3e97ac655329fb30fccb}{\index{event\+\_\+compat.\+h@{event\+\_\+compat.\+h}!event\+\_\+priority\+\_\+init@{event\+\_\+priority\+\_\+init}}
\index{event\+\_\+priority\+\_\+init@{event\+\_\+priority\+\_\+init}!event\+\_\+compat.\+h@{event\+\_\+compat.\+h}}
\subsubsection[{event\+\_\+priority\+\_\+init}]{\setlength{\rightskip}{0pt plus 5cm}int event\+\_\+priority\+\_\+init (
\begin{DoxyParamCaption}
\item[{int}]{}
\end{DoxyParamCaption}
)}}\label{event__compat_8h_ac98d83bce2fe3e97ac655329fb30fccb}


Set the number of different event priorities. 

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000033}{Deprecated}]This function is deprecated because it is easily confused by multiple calls to \hyperlink{event__compat_8h_a1bf74386dd3725e1538fed2d70c1c113}{event\+\_\+init()}, and because it is not safe for multithreaded use. The replacement is \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a67067fe995561cd36a7f34ef19e030e8}{event\+\_\+base\+\_\+priority\+\_\+init()}.\end{DoxyRefDesc}


\begin{DoxySeeAlso}{See also}
\hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a67067fe995561cd36a7f34ef19e030e8}{event\+\_\+base\+\_\+priority\+\_\+init()} 
\end{DoxySeeAlso}


References event\+\_\+base\+\_\+priority\+\_\+init().

\hypertarget{event__compat_8h_ace184d66066e9bac013779d8f6921d11}{\index{event\+\_\+compat.\+h@{event\+\_\+compat.\+h}!event\+\_\+set@{event\+\_\+set}}
\index{event\+\_\+set@{event\+\_\+set}!event\+\_\+compat.\+h@{event\+\_\+compat.\+h}}
\subsubsection[{event\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void event\+\_\+set (
\begin{DoxyParamCaption}
\item[{struct {\bf event} $\ast$}]{, }
\item[{{\bf evutil\+\_\+socket\+\_\+t}}]{, }
\item[{short}]{, }
\item[{void($\ast$)({\bf evutil\+\_\+socket\+\_\+t}, short, void $\ast$)}]{, }
\item[{void $\ast$}]{}
\end{DoxyParamCaption}
)}}\label{event__compat_8h_ace184d66066e9bac013779d8f6921d11}


Prepare an event structure to be added. 

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000034}{Deprecated}]\hyperlink{event__compat_8h_ace184d66066e9bac013779d8f6921d11}{event\+\_\+set()} is not recommended for new code, because it requires a subsequent call to \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_a2efd0ac7e54428d1941f212bc16ed9ce}{event\+\_\+base\+\_\+set()} to be safe under most circumstances. Use \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_afade5e4859dee5b85d502e5594a05cf0}{event\+\_\+assign()} or \hyperlink{libevent2013_2libevent_2include_2event2_2event_8h_ab9a66f828d205eda84b321e32014cbbd}{event\+\_\+new()} instead. \end{DoxyRefDesc}


References event\+\_\+assign().

