Hi,
I am developing C674 program and tried to use DSS script to asynchronized run the .out file.
But I found sometimes when invoking DSS loadProgram(), the .out file is automatically run, and it is a synchronized run. This is what I do not expect.
Does anyone know how to avoid the auto run when invoking DSS loadProgram()?
Thanks!
- Xiang Hui
-----------------------------------------------------------------------------------
More Information:
I tried to find out when it is auto run and when not. After some test, I found the following case can trigger the auto run.
There are 2 cpp files: a.cpp and b.cpp
The following function is implemented in b.cpp
int test()
{
return 1;
}
and the code in a.cpp invokes test().
In this case, when DSS loadProgram() is invoked, the .out file is synchronized auto run.
But, if I move the implement code of test() from b.cpp to a.cpp, that means the test() and its invoke code are in the same file - a.cpp, the .out shall not auto run when DSS loadProgram() is invoked.
By the way, the test() is invoked in a thread(OSAL thread).