ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.319 by root, Fri Oct 22 10:09:12 2010 UTC vs.
Revision 1.321 by sf-exg, Fri Oct 22 10:50:24 2010 UTC

165 165
166=item ev_tstamp ev_time () 166=item ev_tstamp ev_time ()
167 167
168Returns the current time as libev would use it. Please note that the 168Returns the current time as libev would use it. Please note that the
169C<ev_now> function is usually faster and also often returns the timestamp 169C<ev_now> function is usually faster and also often returns the timestamp
170you actually want to know. Also interetsing is the combination of 170you actually want to know. Also interesting is the combination of
171C<ev_update_now> and C<ev_now>. 171C<ev_update_now> and C<ev_now>.
172 172
173=item ev_sleep (ev_tstamp interval) 173=item ev_sleep (ev_tstamp interval)
174 174
175Sleep for the given interval: The current thread will be blocked until 175Sleep for the given interval: The current thread will be blocked until
193as this indicates an incompatible change. Minor versions are usually 193as this indicates an incompatible change. Minor versions are usually
194compatible to older versions, so a larger minor version alone is usually 194compatible to older versions, so a larger minor version alone is usually
195not a problem. 195not a problem.
196 196
197Example: Make sure we haven't accidentally been linked against the wrong 197Example: Make sure we haven't accidentally been linked against the wrong
198version (note, however, that this will not detect ABI mismatches :). 198version (note, however, that this will not detect other ABI mismatches,
199such as LFS or reentrancy).
199 200
200 assert (("libev version mismatch", 201 assert (("libev version mismatch",
201 ev_version_major () == EV_VERSION_MAJOR 202 ev_version_major () == EV_VERSION_MAJOR
202 && ev_version_minor () >= EV_VERSION_MINOR)); 203 && ev_version_minor () >= EV_VERSION_MINOR));
203 204

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines