int sendburst_main(void *arg)
{
+ #ifdef CAN_MSG_VERSION_2
+ struct canmsg_t sendmsg={0,0,5,{0,0},8,{1,2,3,4,5,6,7,8}};
+ #else /* CAN_MSG_VERSION_2 */
struct canmsg_t sendmsg={0,0,5,0,8,{1,2,3,4,5,6,7,8}};
+ #endif /* CAN_MSG_VERSION_2 */
int fd, ret,i,j;
}
void cleanup_module(void) {
- pthread_delete_np (t1);
+ /*pthread_delete_np (t1);*/
+
+ pthread_cancel(t1);
+ pthread_join(t1, NULL);
}