OLD | NEW |
1 /* Test program exit in non-stop mode. | 1 /* Test program exit in non-stop mode. |
2 Copyright 2009-2012 Free Software Foundation, Inc. | 2 Copyright 2009-2013 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GDB. | 4 This file is part of GDB. |
5 | 5 |
6 This program is free software; you can redistribute it and/or modify | 6 This program is free software; you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation; either version 3 of the License, or | 8 the Free Software Foundation; either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
11 This program is distributed in the hope that it will be useful, | 11 This program is distributed in the hope that it will be useful, |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 pthread_create (&thread_id[i], NULL, thread_function, &args[i]); | 45 pthread_create (&thread_id[i], NULL, thread_function, &args[i]); |
46 } | 46 } |
47 | 47 |
48 for (i = 0; i < NTHREADS; ++i) | 48 for (i = 0; i < NTHREADS; ++i) |
49 { | 49 { |
50 pthread_join (thread_id[i], NULL); | 50 pthread_join (thread_id[i], NULL); |
51 } | 51 } |
52 | 52 |
53 return 0; | 53 return 0; |
54 } | 54 } |
OLD | NEW |