[AMDGPU] Add commute for some VOP3 inst (#121326)
[llvm-project.git] / lldb / test / API / macosx / thread-names / main.c
blob6834f064151d65a2fa5d85b466691ebb888c3e28
1 #include <stdio.h>
2 #include <pthread.h>
3 #include <unistd.h>
5 int threads_up_and_running = 0;
7 void *
8 second_thread (void *in)
10 pthread_setname_np ("second thread");
11 while (1)
12 sleep (1);
13 return NULL;
16 void *
17 third_thread (void *in)
19 pthread_setname_np ("third thread");
20 while (1)
21 sleep (1);
22 return NULL;
25 int main ()
27 pthread_setname_np ("main thread");
28 pthread_t other_thread;
29 pthread_create (&other_thread, NULL, second_thread, NULL);
30 pthread_create (&other_thread, NULL, third_thread, NULL);
32 threads_up_and_running = 1;
34 while (1)
35 sleep (1);