From: root Date: Tue, 27 Nov 2007 20:26:51 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: rel-1_5~11 X-Git-Url: https://git.llucax.com/software/libev.git/commitdiff_plain/e0d2a4b0f08314f5c9f39199ee91f045c2f98d4b?ds=inline *** empty log message *** --- diff --git a/ev.html b/ev.html index bb85c18..011cda6 100644 --- a/ev.html +++ b/ev.html @@ -6,7 +6,7 @@ - + @@ -62,19 +62,19 @@
-

NAME

+

NAME

Top

libev - a high performance full-featured event loop written in C

-

SYNOPSIS

+

SYNOPSIS

Top

  #include <ev.h>
 
 
-

EXAMPLE PROGRAM

+

EXAMPLE PROGRAM

Top

  #include <ev.h>
 
@@ -119,7 +119,7 @@
 
-

DESCRIPTION

+

DESCRIPTION

Top

Libev is an event loop: you register interest in certain events (such as a file descriptor being readable or a timeout occuring), and it will manage @@ -133,7 +133,7 @@ details of the event, and then hand it over to libev by starting the watcher.

-

FEATURES

+

FEATURES

Top

Libev supports select, poll, the linux-specific epoll, the bsd-specific kqueue and the solaris-specific event port mechanisms @@ -149,7 +149,7 @@ file watchers (ev_stat) and even limited support for fork events for example).

-

CONVENTIONS

+

CONVENTIONS

Top

Libev is very configurable. In this manual the default configuration will be described, which supports multiple event loops. For more info about @@ -159,7 +159,7 @@ loops, then all functions taking an initial argument of name loop (which is always of type struct ev_loop *) will not have this argument.

-

TIME REPRESENTATION

+

TIME REPRESENTATION

Top

Libev represents time as a single floating point number, representing the (fractional) number of seconds since the (POSIX) epoch (somewhere near @@ -169,7 +169,7 @@ to the double type in C, and when you need to do any calculations o it, you should treat it as such.

-

GLOBAL FUNCTIONS

+

GLOBAL FUNCTIONS

Top

These functions can be called anytime, even before initialising the library in any way.

@@ -287,7 +287,7 @@ requested operation, or, if the condition doesn't go away, do bad stuff
-

FUNCTIONS CONTROLLING THE EVENT LOOP

+

FUNCTIONS CONTROLLING THE EVENT LOOP

Top

An event loop is described by a struct ev_loop *. The library knows two types of such loops, the default loop, which supports signals and child @@ -570,7 +570,7 @@ running when nothing else is active.

-

ANATOMY OF A WATCHER

+

ANATOMY OF A WATCHER

Top

A watcher is a structure that you create and register to record your interest in some event. For instance, if you want to wait for STDIN to @@ -793,7 +793,7 @@ have been omitted....

-

WATCHER TYPES

+

WATCHER TYPES

Top

This section describes each watcher in detail, but will not repeat information given in the last section. Any initialisation/set macros, @@ -1562,7 +1562,7 @@ believe me.

-

OTHER FUNCTIONS

+

OTHER FUNCTIONS

Top

There are some other functions of possible interest. Described. Here. Now.

@@ -1619,7 +1619,7 @@ loop!).

-

LIBEVENT EMULATION

+

LIBEVENT EMULATION

Top

Libev offers a compatibility emulation layer for libevent. It cannot emulate the internals of libevent, so here are some usage hints:

@@ -1639,7 +1639,7 @@ to use the libev header file and library.
-

C++ SUPPORT

+

C++ SUPPORT

Top

Libev comes with some simplistic wrapper classes for C++ that mainly allow you to use some convinience methods to start/stop watchers and also change @@ -1744,7 +1744,7 @@ the constructor.

-

MACRO MAGIC

+

MACRO MAGIC

Top

Libev can be compiled with a variety of options, the most fundemantal is EV_MULTIPLICITY. This option determines wether (most) functions and @@ -1805,7 +1805,7 @@ wether multiple loops are supported or not.

-

EMBEDDING

+

EMBEDDING

Top

Libev can (and often is) directly embedded into host applications. Examples of applications that embed it include the Deliantra @@ -2109,7 +2109,7 @@ that everybody includes and which overrides some autoconf choices:

-

COMPLEXITIES

+

COMPLEXITIES

Top

In this section the complexities of (many of) the algorithms used inside libev will be explained. For complexity discussions about backends see the @@ -2132,7 +2132,7 @@ documentation for ev_default_init.

-

AUTHOR

+

AUTHOR

Top

Marc Lehmann <libev@schmorp.de>.