08-19-2016 03:35 PM
I am developing a system on the 9068 that is multi treaded. I am trying to do a "shutdown". I initialize bool variables to false and set them true when I want to shutdown. I have a routine that I call to communicate that the tread has exited. I then can do the Join action so the thread can completely exit. I finally return to the small main routine which does a printf just before returning. The printf is displayed on the console, but the module does not log out and the little red square stays red. As a work around I was able to get the main routines thread ID and send a SIGALARM, but that seems so messy.
What is keeping the routine from completing (eclipse from logging out of the console)?
Thanks
Ray
08-23-2016 08:19 AM
I was working on another change and in this case I entered the main routine and ended up returning (with a -1) without starting up any other part of the application. So I had not threads, mutex, etc. created. I do have the real time library loaded but not explicitly called. It still failed to logout.
Any insight would be appreciated.
Thanks
08-23-2016 08:47 AM
There are two higher-level issues here:
Finally, this forum is probably not the best place to ask general C/C++ type querries, and that's realistically what's being asked here.