157 QCoreApplication a(argc, argv);
161 hinstLib = dlopen(
"./libxfstk-dldr-api.so", RTLD_LAZY);
164 printf(
"%s\n", dlerror());
172 printf(
"%s\n", dlerror());
179 printf(
"%s\n", dlerror());
185 if(xfstktest == NULL)
190 bool provisioningok =
false;
214 printf(
"\n\nXFSTK INFO: Wait One seconds and scan for SCU device again\n");
227 thread_rec->
threadobj = (
void*)downloader;
235 myarg->
fwdnx =
"C:\\tmp\\fwdnx.bin";
236 myarg->
fwimage =
"C:\\tmp\\fwimage.bin";
237 myarg->
osdnx =
"C:\\tmp\\osdnx.bin";
238 myarg->
osimage =
"C:\\tmp\\osimage.bin";
242 cout <<
"Starting thread on USBSN: " + *
it_usbsn <<
"\n";
243 downloader->
Arg(myarg);
244 thread_rec->hthread = (
void*)dlthread;
245 dlthread->
setobj(downloader);
273 printf(
"\n\nXFSTK INFO: %d devices soccessful out of %d\n",pass,
donetargets);
286 cout <<
"Press any key to terminate this program. " ;
int failtargets
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:55
int totaltargets
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:53
string fwimage
Definition: xfstk-dldr-example-parallel.h:39
string usbsn
Definition: xfstk-dldr-example-parallel.h:43
string fwdnx
Definition: xfstk-dldr-example-parallel.h:38
xfstkdldrapi *(* PXFSTKALLOC)()
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:30
list< void * > list_running
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:49
list< void * >::iterator it_done
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:52
void(* PXFSTKDEALLOC)(xfstkdldrapi *)
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:31
void * Arg() const
Definition: xfstk-dldr-example-parallel.h:60
list< string > list_usbsn
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:47
void setobj(DlThreadObj *obj)
Definition: xfstk-dldr-example-parallel.cpp:104
void * hinstLib
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:33
list< string >::iterator it_usbsn
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:48
string usbsn
Definition: xfstk-dldr-example-parallel.h:50
Definition: xfstk-dldr-example-parallel.h:69
void * threadobj
Definition: xfstk-dldr-example-parallel.h:49
list< void * >::iterator it_running
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:51
string gpflags
Definition: xfstk-dldr-example-parallel.h:42
PXFSTKALLOC xfstkalloc
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:34
bool IsContains(list< void *> *list_checking, string *usbsn)
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:130
int donetargets
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:54
Definition: xfstk-dldr-example-parallel.h:37
void * hthread
Definition: xfstk-dldr-example-parallel.h:51
string osimage
Definition: xfstk-dldr-example-parallel.h:41
PXFSTKDEALLOC xfstkdealloc
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:35
virtual int getavailabletargets()
Reports the number of available targets connected to the host system.
void status(char *message, void *clientdata)
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:38
Definition: xfstk-dldr-example-parallel.h:54
This interface enables the development of Intel SoC firmware/operating system provisioning applicatio...
Definition: xfstkdldrapi.h:124
string osdnx
Definition: xfstk-dldr-example-parallel.h:40
QMutex ghListMutex
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:27
list< void * > list_done
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:50
xfstkstatuspfn statuscallback
Definition: xfstk-dldr-example-parallel.h:45
Definition: xfstk-dldr-example-parallel.h:48
void Sleepms(int delay)
Definition: dynamic-load/xfstk-dldr-example-parallel.cpp:145