X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=usertrace-fast%2Ftest.c;h=ca528fbd06795ac7433d1685a5b196ee9f162c3d;hb=77b31f39f7febe0a1cdd4c1297b73918e5efaca0;hp=898b86af6402d0521f31da7fabdcf9b711384182;hpb=700d350d4e2ae59d111306b9afa721a4ab0eb55a;p=lttv.git diff --git a/usertrace-fast/test.c b/usertrace-fast/test.c index 898b86af..ca528fbd 100644 --- a/usertrace-fast/test.c +++ b/usertrace-fast/test.c @@ -21,7 +21,7 @@ void *thr1(void *arg) } //return ((void*)1); - //pthread_exit((void*)1); + pthread_exit((void*)1); } void *thr2(void *arg) @@ -32,14 +32,14 @@ void *thr2(void *arg) printf("thread 2, thread id : %lu, pid %lu\n", pthread_self(), getpid()); sleep(2); //} - //return ((void*)2); - //pthread_exit((void*)2); for(i=0; i<2; i++) { ltt_usertrace_fast_buffer_switch(); sleep(3); } + return ((void*)2); /* testing "die" */ + //pthread_exit((void*)2); }