
© 2007, QNX Software Systems GmbH & Co. KG. usbd
_
connect()
Caveats:
The usbd
_
connect() function creates a thread on your behalf that’s used by the library
to monitor the USB stack for device insertion or removal. Since your insertion and
removal callback functions are called by this new thread, you must ensure that any
common resources used between that thread and any other thread(s) in your class
driver are properly protected (e.g. via a mutex).
See also:
usbd
_
args
_
lookup(), usbd
_
attach(), usbd
_
detach(), usbd
_
disconnect()
September 10, 2007 Chapter 4 • USB Library Reference 31
Komentarze do niniejszej Instrukcji