|
The Pedigree Project 0.1
|
#include <UsbHub.h>
Collaboration diagram for UsbInterruptInHandle:Public Member Functions | |
| UsbInterruptInHandle (UsbInterruptInHandle &&other) | |
| UsbInterruptInHandle & | operator= (UsbInterruptInHandle &&other) |
| MUST_USE_RESULT bool | reset () |
| operator bool () const | |
Private Member Functions | |
| void | adopt (UsbHub *owner, const UsbInterruptInToken &token, void(*callback)(uintptr_t, ssize_t), uintptr_t parameter) |
| UsbInterruptInHandle (const UsbInterruptInHandle &)=delete | |
| UsbInterruptInHandle & | operator= (const UsbInterruptInHandle &)=delete |
Private Attributes | |
| Atomic< UsbHub * > | m_Owner |
| Atomic< bool > | m_Resetting |
| UsbInterruptInToken | m_Token |
| void(* | m_Callback )(uintptr_t, ssize_t) |
| uintptr_t | m_Parameter |
| bool | m_CancellationStarted |
Friends | |
| class | UsbHub |
Owns one recurring interrupt-IN subscription.
reset() removes the controller producer and drains every callback captured for this exact subscription generation before returning.
| UsbInterruptInHandle::UsbInterruptInHandle | ( | UsbInterruptInHandle && | other | ) |
|
private |
|
inlineexplicit |
| UsbInterruptInHandle & UsbInterruptInHandle::operator= | ( | UsbInterruptInHandle && | other | ) |
| bool UsbInterruptInHandle::reset | ( | ) |
Returns false when callback context cannot safely wait for cancellation.
Definition at line 98 of file UsbHub.cc.
References Scheduler::instance(), and Scheduler::yield().
|
private |
|
private |