*** empty log message ***

master
Marc Alexander Lehmann 16 years ago
parent fa63825ad2
commit e8467d9533

@ -772,7 +772,7 @@ loop_init (EV_P_ unsigned int flags)
now_floor = mn_now;
rtmn_diff = ev_rt_now - mn_now;
if (!(flags & EVMETHOD_NOENV) && !enable_secure () && getenv ("LIBEV_FLAGS"))
if (!(flags & EVFLAG_NOENV) && !enable_secure () && getenv ("LIBEV_FLAGS"))
flags = atoi (getenv ("LIBEV_FLAGS"));
if (!(flags & 0x0000ffff))

@ -203,7 +203,7 @@ struct ev_check
EV_WATCHER (ev_check)
};
/* invoked when sigchld is received and waitpid indicates the givne pid */
/* invoked when sigchld is received and waitpid indicates the given pid */
/* revent EV_CHILD */
/* does not support priorities */
struct ev_child

@ -6,7 +6,7 @@
<meta name="description" content="Pod documentation for libev" />
<meta name="inputfile" content="&lt;standard input&gt;" />
<meta name="outputfile" content="&lt;standard output&gt;" />
<meta name="created" content="Mon Nov 12 08:58:02 2007" />
<meta name="created" content="Mon Nov 12 09:03:30 2007" />
<meta name="generator" content="Pod::Xhtml 1.57" />
<link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head>
<body>
@ -28,7 +28,7 @@
<li><a href="#WATCHER_TYPES">WATCHER TYPES</a>
<ul><li><a href="#struct_ev_io_is_my_file_descriptor_r">struct ev_io - is my file descriptor readable or writable</a></li>
<li><a href="#struct_ev_timer_relative_and_optiona">struct ev_timer - relative and optionally recurring timeouts</a></li>
<li><a href="#ev_periodic">ev_periodic</a></li>
<li><a href="#ev_periodic_to_cron_or_not_to_cron_i">ev_periodic - to cron or not to cron it</a></li>
<li><a href="#ev_signal_signal_me_when_a_signal_ge">ev_signal - signal me when a signal gets signalled</a></li>
<li><a href="#ev_child_wait_for_pid_status_changes">ev_child - wait for pid status changes</a></li>
<li><a href="#ev_idle_when_you_ve_got_nothing_bett">ev_idle - when you've got nothing better to do</a></li>
@ -89,7 +89,9 @@ will not have this argument.</p>
</div>
<h1 id="TIME_AND_OTHER_GLOBAL_FUNCTIONS">TIME AND OTHER GLOBAL FUNCTIONS</h1><p><a href="#TOP" class="toplink">Top</a></p>
<div id="TIME_AND_OTHER_GLOBAL_FUNCTIONS_CONT">
<p>Libev represents time as a single floating point number. This type is
<p>Libev represents time as a single floating point number, representing the
(fractional) number of seconds since the (POSIX) epoch (somewhere near
the beginning of 1970, details are complicated, don't ask). This type is
called <code>ev_tstamp</code>, which is what you should use too. It usually aliases
to the double type in C.</p>
<dl>
@ -480,8 +482,8 @@ the timer, and again will automatically restart it if need be.</p>
</dl>
</div>
<h2 id="ev_periodic">ev_periodic</h2>
<div id="ev_periodic_CONTENT">
<h2 id="ev_periodic_to_cron_or_not_to_cron_i">ev_periodic - to cron or not to cron it</h2>
<div id="ev_periodic_to_cron_or_not_to_cron_i-2">
<p>Periodic watchers are also timers of a kind, but they are very versatile
(and unfortunately a bit complex).</p>
<p>Unlike ev_timer's, they are not based on real time (or relative time)

@ -41,7 +41,9 @@ will not have this argument.
=head1 TIME AND OTHER GLOBAL FUNCTIONS
Libev represents time as a single floating point number. This type is
Libev represents time as a single floating point number, representing the
(fractional) number of seconds since the (POSIX) epoch (somewhere near
the beginning of 1970, details are complicated, don't ask). This type is
called C<ev_tstamp>, which is what you should use too. It usually aliases
to the double type in C.
@ -467,7 +469,7 @@ the timer, and again will automatically restart it if need be.
=back
=head2 ev_periodic
=head2 ev_periodic - to cron or not to cron it
Periodic watchers are also timers of a kind, but they are very versatile
(and unfortunately a bit complex).

@ -91,13 +91,13 @@ void *event_init (void)
{
#if EV_MULTIPLICITY
if (x_cur)
x_cur = (struct event_base *)ev_loop_new (EVMETHOD_AUTO);
x_cur = (struct event_base *)ev_loop_new (EVFLAG_AUTO);
else
x_cur = (struct event_base *)ev_default_loop (EVMETHOD_AUTO);
x_cur = (struct event_base *)ev_default_loop (EVFLAG_AUTO);
#else
assert (("multiple event bases not supported when not compiled with EV_MULTIPLICITY", !x_cur));
x_cur = (struct event_base *)(long)ev_default_loop (EVMETHOD_AUTO);
x_cur = (struct event_base *)(long)ev_default_loop (EVFLAG_AUTO);
#endif
return x_cur;
@ -108,7 +108,7 @@ void event_base_free (struct event_base *base)
dLOOPbase;
#if EV_MULTIPLICITY
if (ev_default_loop (EVMETHOD_AUTO) != loop)
if (ev_default_loop (EVFLAG_AUTO) != loop)
ev_loop_destroy (loop);
#endif
}

Loading…
Cancel
Save