]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/utils/readburst_rtl.c
Added missing indication CAN_ENDSF_MEM_RTL for RTL pool malloc.
[lincan.git] / lincan / utils / readburst_rtl.c
index 9f03cbf635186c020a374b234e9c3f7f9d8b119f..afb0eed6d18e5b3fdefce58442e275393a538f31 100644 (file)
@@ -124,6 +124,8 @@ int readburst_main(void *arg)
                        printf("\n");
                        i++;
                }
+               pthread_testcancel();
+
        }
        /* close(fd); is called by cleanup handler*/
         pthread_cleanup_pop(1);
@@ -154,4 +156,7 @@ int init_module(void) {
 
 void cleanup_module(void) {
         pthread_delete_np (t1);
+       
+       /*pthread_cancel(t1);
+       pthread_join(t1, NULL);*/
 }