 |
xFSTK
1.8.1-5.311
Intel SoC Cross Platform Firmware & Software Tool Kit
|
#include "xfstk-dldr-example-parallel.h"
#include <stdio.h>
|
| void | status (char *message, void *clientdata) |
| |
| bool | IsContains (list< void * > *list_checking, string *usbsn) |
| |
| void | Sleepms (int delay) |
| |
| int | main (int argc, char *argv[]) |
| |
◆ status()
| void status |
( |
char * |
message, |
|
|
void * |
clientdata |
|
) |
| |
◆ IsContains()
| bool IsContains |
( |
list< void * > * |
list_checking, |
|
|
string * |
usbsn |
|
) |
| |
◆ Sleepms()
| void Sleepms |
( |
int |
delay | ) |
|
132 #if defined XFSTK_OS_WIN
Referenced by main().
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
140 QCoreApplication a(argc, argv);
167 printf(
"\n\nXFSTK INFO: Wait One seconds and scan for SCU device again\n");
179 thread_rec->
threadobj = (
void*)downloader;
187 myarg->
fwdnx =
"//tmp//fwdnx.bin";
188 myarg->
fwimage =
"//tmp//fwimage.bin";
189 myarg->
osdnx =
"//tmp//osdnx.bin";
190 myarg->
osimage =
"//tmp//osimage.bin";
194 cout <<
"Starting thread on USBSN: " + *
it_usbsn <<
"\n";
195 downloader->
Arg(myarg);
196 thread_rec->
hthread = (
void*)dlthread;
197 dlthread->
setobj(downloader);
222 printf(
"\n\nXFSTK ERROR: %d devices failed out of %d\n",fail,
donetargets);
225 printf(
"\n\nXFSTK INFO: %d devices soccessful out of %d\n",pass,
donetargets);
References DlThreadObj::Arg(), donetargets, failtargets, arg_type::fwdnx, arg_type::fwimage, xfstkdldrapi::getavailabletargets(), ghListMutex, arg_type::gpflags, thread_rectype::hthread, IsContains(), it_done, it_running, it_usbsn, list_done, list_running, list_usbsn, arg_type::osdnx, arg_type::osimage, Dlthread::setobj(), Sleepms(), status(), arg_type::statuscallback, thread_rectype::threadobj, totaltargets, arg_type::usbsn, and thread_rectype::usbsn.
◆ ghMutex
◆ ghListMutex
◆ list_usbsn
◆ it_usbsn
| list<string>::iterator it_usbsn |
◆ list_running
◆ list_done
◆ it_running
| list<void*>::iterator it_running |
◆ it_done
| list<void*>::iterator it_done |
◆ totaltargets
◆ donetargets
◆ failtargets
void * threadobj
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:49
void Sleepms(int delay)
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:130
string gpflags
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:42
int failtargets
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:45
list< void * > list_done
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:40
string osdnx
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:40
string fwimage
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:39
string usbsn
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:43
list< void * > list_running
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:39
void setobj(DlThreadObj *obj)
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:104
QMutex ghMutex
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:25
int totaltargets
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:43
list< string > list_usbsn
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:37
void * hthread
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:51
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:70
string osimage
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:41
xfstkstatuspfn statuscallback
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:45
string fwdnx
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:38
list< string >::iterator it_usbsn
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:38
void status(char *message, void *clientdata)
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:28
virtual int getavailabletargets()
Reports the number of available targets connected to the host system.
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:55
QMutex ghListMutex
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:26
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:37
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:48
list< void * >::iterator it_running
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:41
string usbsn
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:50
list< void * >::iterator it_done
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:42
Definition: xfstkdldrapi.h:124
bool IsContains(list< void * > *list_checking, string *usbsn)
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:115
void * Arg() const
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.h:60
int donetargets
Definition: xfstk-dldr-example-parallel/xfstk-dldr-example-parallel.cpp:44