8 #include <ltt/ltt-facility-user_generic.h>
13 printf("thread 1, thread id : %lu, pid %lu\n", pthread_self(), getpid());
16 trace_user_generic_string("Hello world! Have a nice day.");
26 printf("thread 2, thread id : %lu, pid %lu\n", pthread_self(), getpid());
29 trace_user_generic_string("Hello world! Have a nice day.");
42 printf("Will trace the following string : Hello world! Have a nice day.\n");
43 printf("Press CTRL-C to stop.\n");
44 printf("thread main, thread id : %lu, pid %lu\n", pthread_self(), getpid());
45 err
= pthread_create(&tid1
, NULL
, thr1
, NULL
);
48 err
= pthread_create(&tid2
, NULL
, thr2
, NULL
);
51 err
= pthread_join(tid1
, &tret
);
54 err
= pthread_join(tid2
, &tret
);
This page took 0.03146 seconds and 4 git commands to generate.