I am trying to genearte a personalized log file when all verifications will be over. Plan is to read the log file after completion of the RUN.
How to check that one process is over or still running ?
Let me explain with a simpler example............
For example , I have one function Func1()
;Step1 : Run LVS,DRC, ......... etc
; Step2 : when run is over read the log file and do further processing
How to make Step2 await unless Step1 is complted ?
Thanks in advance ,
Not clear what Step1 is doing. If it's launching an external process, the best way would be to use ipcBeginProcess and rather than having Step2 called after doing the ipcBeginProcess, instead give an exit handler function argument to ipcBeginProcess, and then call Step2 from there?
If this doesn't help, I'd need to know more details about what you're waiting for - i.e. how is Step1 being done and how would you know it is finished. That's really the crux of the problem.
When a function will be called , all the lines inside that will be executed line by line.
What exactly I want to do is I want to pause the code in between and resume it after completion of some task.
Step1 will fire a DRC or LVS run. Immediately after that next line of the programm will be executed, which is Step2 [read the log file], but I do not want to do that because by that time probably log file will not be ready to read or the run in progess.So it is important to know when the DRC or LVS run is over, then read the log file.
So , now my question is how to check if the run is over. and then allow Step2 to continue.
You are right that Step1 will launch an external process and I will be using ipcBeginProcess.
As I couldn't find a better example, it will be helpfull if you can put an example with ipcBeginProcess using all optinal arguements.
ipcBeginProcess(t_command[ t_hostName ][ tsu_dataHandler ][ tsu_errHandler ][ tsu_postFunc ][ t_logFile ])