Device-USB-Win32Async
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
Win32Async.pm view on Meta::CPAN
#
<Other Task code>
}
See the libusb-win32 manual for more information about the methods. The
functionality is the same as the libusb function whose name is
the method name prepended with "usb_".
Generally, define a $Context variable which the library will use to keep track of
the asynchronous call. Activate the transfer (read or write, depending on the
endpoint) using submit_async() as shown, then loop calling reap_async_nocancel()
while checking the return code.
You can have any number of async operations pending on different endpoints - just
define multiple context variables as needed (ie - $Context1, $Context2, &c).
=cut
##########################################################################################
#
# Version 0.34 - Added support for asynchronous I/O
#
# The caller supplies a scalar $Context which we use to keep opaque (from the caller)
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.341 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )