7 #include <ltt/ltt-usertrace-fast.h>
15 printf("thread 1, thread id : %lu, pid %lu\n", pthread_self(), getpid());
19 // ltt_usertrace_fast_buffer_switch();
24 pthread_exit((void*)1);
32 printf("thread 2, thread id : %lu, pid %lu\n", pthread_self(), getpid());
36 // ltt_usertrace_fast_buffer_switch();
41 return ((void*)2); /* testing "die" */
42 //pthread_exit((void*)2);
53 printf("thread main, thread id : %lu, pid %lu\n", pthread_self(), getpid());
54 err
= pthread_create(&tid1
, NULL
, thr1
, NULL
);
57 err
= pthread_create(&tid2
, NULL
, thr2
, NULL
);
61 // ltt_usertrace_fast_buffer_switch();
65 err
= pthread_join(tid1
, &tret
);
68 err
= pthread_join(tid2
, &tret
);
This page took 0.029703 seconds and 4 git commands to generate.