Gervot Olivier(deleted)
04/29/2013 8:03 AM
post100945
|
Hi
I have the develop an application with 4 threads used for bus CAN communications 2 for reading, 2 for writing
These threads are not destroyed when the process end
If i trap signals and terminate then programaticatly, it work
But if a problem occurs these 4 threads remains, the process didn't end and the core dump file is not produced.
The code used to start these threads is above:
pthread_attr_init (&J1939_attrib_RX);
pthread_attr_setinheritsched (&J1939_attrib_RX, PTHREAD_EXPLICIT_SCHED);
pthread_attr_setschedpolicy (&J1939_attrib_RX, SCHED_RR);
J1939_param_RX.sched_priority = (UINT8)Rx_Priority;
pthread_attr_setschedparam (&J1939_attrib_RX, &J1939_param_RX);
Rx_Thread_ID = pthread_create(&J1939_thread_Rx, &J1939_attrib_RX, J1939_PCAN104_Appli_Rx_thread, NULL);
why these thread are immortals ?
Thanks
|
|
|