08-12-2009, 04:57 PM
Dear Gintaras,
I have analysed the situation, but I still have some difficulty in formulating a smart solution. Specifically :
osd_close :
should wait before exiting, namely after statement
for OSD_Main to cnclude the execution of the relevant thread, before entering into a new one, indeed with the same name. Therefore, OSD_Main, right after MessageLoop, it should send a message to OSD_Main for the relevant thread :
I tried to use the method of setting events. It worked partially. My problem is that I do not know how to communicate the thread name (namely "osd_inm" and/or "osd_sub") between these two routines.
Any advice is mostly appreciated.
I have analysed the situation, but I still have some difficulty in formulating a smart solution. Specifically :
osd_close :
int h
if(len(osdid))
h=win(osdid "QM_OSD_Class")
if(h) clo h; err
else
rep
h=win("" "QM_OSD_Class")
if(!h) break
clo h; errshould wait before exiting, namely after statement
for OSD_Main to cnclude the execution of the relevant thread, before entering into a new one, indeed with the same name. Therefore, OSD_Main, right after MessageLoop, it should send a message to OSD_Main for the relevant thread :
I tried to use the method of setting events. It worked partially. My problem is that I do not know how to communicate the thread name (namely "osd_inm" and/or "osd_sub") between these two routines.
Any advice is mostly appreciated.
