7 #include "lttng_usertrace.h"
13 printf("thread 1, thread id : %lu, pid %lu\n", pthread_self(), getpid());
24 printf("thread 2, thread id : %lu, pid %lu\n", pthread_self(), getpid());
37 printf("thread main, thread id : %lu, pid %lu\n", pthread_self(), getpid());
38 err
= pthread_create(&tid1
, NULL
, thr1
, NULL
);
41 err
= pthread_create(&tid2
, NULL
, thr2
, NULL
);
49 err
= pthread_join(tid1
, &tret
);
52 err
= pthread_join(tid2
, &tret
);
This page took 0.036447 seconds and 5 git commands to generate.