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

Comparing libeio/eio.pod (file contents):
Revision 1.11 by root, Mon Jun 20 07:28:15 2011 UTC vs.
Revision 1.12 by root, Wed Jun 29 10:32:55 2011 UTC

153 153
154You submit a request by calling the relevant C<eio_TYPE> function with the 154You submit a request by calling the relevant C<eio_TYPE> function with the
155required parameters, a callback of type C<int (*eio_cb)(eio_req *req)> 155required parameters, a callback of type C<int (*eio_cb)(eio_req *req)>
156(called C<eio_cb> below) and a freely usable C<void *data> argument. 156(called C<eio_cb> below) and a freely usable C<void *data> argument.
157 157
158The return value will either be 0 158The return value will either be 0, in case something went really wrong
159(which can basically only happen on very fatal errors, such as C<malloc>
160returning 0, which is rather unlikely), or a pointer to the newly-created
161and submitted C<eio_req *>.
159 162
160The callback will be called with an C<eio_req *> which contains the 163The callback will be called with an C<eio_req *> which contains the
161results of the request. The members you can access inside that structure 164results of the request. The members you can access inside that structure
162vary from request to request, except for: 165vary from request to request, except for:
163 166
568 571
569=back 572=back
570 573
571=head3 GROUPING AND LIMITING REQUESTS 574=head3 GROUPING AND LIMITING REQUESTS
572 575
576There is one more rather special request, C<eio_grp>. It is a very special
577aio request: Instead of doing something, it is a container for other eio
578requests.
579
580There are two primary use cases for this: a) bundle many requests into a
581single, composite, request with a definite callback and the ability to
582cancel the whole request with its subrequests and b) limiting the number
583of "active" requests.
584
585Further below you will find more dicussion of these topics - first follows
586the reference section detailing the request generator and other methods.
587
588=over 4
589
590=item eio_grp (eio_cb cb, void *data)
591
592Creates and submits a group request.
593
594=back
595
596
597
573#TODO 598#TODO
574 599
575/*****************************************************************************/ 600/*****************************************************************************/
576/* groups */ 601/* groups */
577 602

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines