libusb.3 (04391da364e252ca15645147e2c966dc6d1fbbda) libusb.3 (aa87aa52326be7b726664dba65e91ec3d8160f48)
1.\"
2.\" Copyright (c) 2009 Sylvestre Gallon
3.\"
1.\"
2.\" Copyright (c) 2009 Sylvestre Gallon
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution.

--- 7 unchanged lines hidden (view full) ---

21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.\" $FreeBSD$
28.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.

--- 7 unchanged lines hidden (view full) ---

19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD$
26.\"
29.Dd June 9, 2020
27.Dd October, 2, 2022
30.Dt LIBUSB 3
31.Os
32.Sh NAME
33.Nm libusb
34.Nd "USB access library"
35.Sh LIBRARY
36USB access library
37.Pq libusb, -lusb

--- 561 unchanged lines hidden (view full) ---

599.Pp
600.Ft int
601.Fn libusb_event_handler_active "libusb_context *ctx"
602Determine if an active thread is handling events.
603Returns 1 if there is a thread handling events and 0 if there
604are no threads currently handling events.
605.Pp
606.Ft void
28.Dt LIBUSB 3
29.Os
30.Sh NAME
31.Nm libusb
32.Nd "USB access library"
33.Sh LIBRARY
34USB access library
35.Pq libusb, -lusb

--- 561 unchanged lines hidden (view full) ---

597.Pp
598.Ft int
599.Fn libusb_event_handler_active "libusb_context *ctx"
600Determine if an active thread is handling events.
601Returns 1 if there is a thread handling events and 0 if there
602are no threads currently handling events.
603.Pp
604.Ft void
605.Fn libusb_interrupt_event_handler "libusb_context *ctx"
606Causes the
607.Fn libusb_handle_events
608familiy of functions to return to the caller one time.
609The
610.Fn libusb_handle_events
611functions may be called again after calling this function.
612.Pp
613.Ft void
607.Fn libusb_lock_event_waiters "libusb_context *ctx"
608Acquire the event_waiters lock.
609This lock is designed to be obtained in the
610situation where you want to be aware when events are completed, but some other
611thread is event handling so calling
612.Fn libusb_handle_events
613is not allowed.
614.Pp

--- 171 unchanged lines hidden ---
614.Fn libusb_lock_event_waiters "libusb_context *ctx"
615Acquire the event_waiters lock.
616This lock is designed to be obtained in the
617situation where you want to be aware when events are completed, but some other
618thread is event handling so calling
619.Fn libusb_handle_events
620is not allowed.
621.Pp

--- 171 unchanged lines hidden ---