+static WorkerThread *main_loop_thread = NULL;
+
+WorkerThread::WorkerThread(char *script_cmds_file, char *script_cmd,
+ bool usb_present, serial_port* sp)
+ : script_cmds_file(script_cmds_file), script_cmd(script_cmd),
+ usb_present(usb_present), sp(sp)
+{
+}
+
+WorkerThread::~WorkerThread()
+{
+}
+
+void WorkerThread::run() {
+ main_loop(script_cmds_file, script_cmd, usb_present, sp);
+}