|
static ThreadId | Self () |
| Returns the current thread's id. More...
|
|
◆ WidgetDetectorThread()
Constructor
- Parameters
-
handler | the NewWidgetHandler object to call when we find new widgets. |
ss | the SelectServer to use when calling the handler object. This is also used by some of the widgets so it should be the same SelectServer that you intend to use the Widgets with. |
usb_pro_timeout | the time in ms between each USB Pro discovery message. |
robe_timeout | the time in ms between each Robe discovery message. |
◆ FreeWidget()
Indicate that this widget is no longer is use and can be deleted.
◆ Join()
bool ola::plugin::usbpro::WidgetDetectorThread::Join |
( |
void * |
ptr | ) |
|
|
virtual |
◆ PerformDiscovery()
Start the discovery sequence for a widget.
◆ Run()
void * ola::plugin::usbpro::WidgetDetectorThread::Run |
( |
| ) |
|
|
virtual |
◆ RunScan()
bool ola::plugin::usbpro::WidgetDetectorThread::RunScan |
( |
| ) |
|
|
protectedvirtual |
Scan for widgets, and launch the discovery process for any that we don't already know about.
◆ SetDeviceDirectory()
void ola::plugin::usbpro::WidgetDetectorThread::SetDeviceDirectory |
( |
const std::string & |
directory | ) |
|
Set the directory in which to look for usb widgets. This should be called before Run() since it doesn't do any locking.
- Parameters
-
directory | the directory path e.g. /dev |
◆ SetDevicePrefixes()
void ola::plugin::usbpro::WidgetDetectorThread::SetDevicePrefixes |
( |
const std::vector< std::string > & |
prefixes | ) |
|
Set the list of prefixes to consider as possible devices. This should be called before Run() since it doesn't do any locking.
- Parameters
-
prefixes | a vector of strings e.g. ["ttyUSB"] |
◆ SetIgnoredDevices()
void ola::plugin::usbpro::WidgetDetectorThread::SetIgnoredDevices |
( |
const std::vector< std::string > & |
devices | ) |
|
Set the list of devices we wish to ignore
- Parameters
-
devices | a list of devices paths, e.g. /dev/ttyUSB0.NNNNNN |
◆ WaitUntilRunning()
void ola::plugin::usbpro::WidgetDetectorThread::WaitUntilRunning |
( |
| ) |
|
Block until the thread is up and running
The documentation for this class was generated from the following files: