Fix bugs for DSP
Status: Beta
Brought to you by:
jschmidlapp
1. Init mutex before pthread terminate on DSP, therefore pthread terminate will release those mutexs, If behind terminate, it will deadlock. Previous version don't release mutex at pthread terminate, it is memory leak.
2. DSP thread attribute about stack set to 0, if don't assign, it will deadlock at sometimes on DSP.
3. Set PTHREAD_STACK_MIN to 5120, original is 0, can't work on DSP.
Fix some bugs on DSP (20100514)