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

Comparing libev/ev.3 (file contents):
Revision 1.31 by root, Wed Nov 28 11:31:34 2007 UTC vs.
Revision 1.32 by root, Wed Nov 28 17:32:24 2007 UTC

305might be supported on the current system, you would need to look at 305might be supported on the current system, you would need to look at
306\&\f(CW\*(C`ev_embeddable_backends () & ev_supported_backends ()\*(C'\fR, likewise for 306\&\f(CW\*(C`ev_embeddable_backends () & ev_supported_backends ()\*(C'\fR, likewise for
307recommended ones. 307recommended ones.
308.Sp 308.Sp
309See the description of \f(CW\*(C`ev_embed\*(C'\fR watchers for more info. 309See the description of \f(CW\*(C`ev_embed\*(C'\fR watchers for more info.
310.IP "ev_set_allocator (void *(*cb)(void *ptr, size_t size))" 4 310.IP "ev_set_allocator (void *(*cb)(void *ptr, long size))" 4
311.IX Item "ev_set_allocator (void *(*cb)(void *ptr, size_t size))" 311.IX Item "ev_set_allocator (void *(*cb)(void *ptr, long size))"
312Sets the allocation function to use (the prototype and semantics are 312Sets the allocation function to use (the prototype is similar \- the
313identical to the realloc C function). It is used to allocate and free 313semantics is identical \- to the realloc C function). It is used to
314memory (no surprises here). If it returns zero when memory needs to be 314allocate and free memory (no surprises here). If it returns zero when
315allocated, the library might abort or take some potentially destructive 315memory needs to be allocated, the library might abort or take some
316action. The default is your system realloc function. 316potentially destructive action. The default is your system realloc
317function.
317.Sp 318.Sp
318You could override this function in high-availability programs to, say, 319You could override this function in high-availability programs to, say,
319free some memory if it cannot allocate memory, to use a special allocator, 320free some memory if it cannot allocate memory, to use a special allocator,
320or even to sleep a while and retry until some memory is available. 321or even to sleep a while and retry until some memory is available.
321.Sp 322.Sp

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines