| OLD | NEW |
| 1 /* A minimal multi-threaded test case. | 1 /* A minimal multi-threaded test case. |
| 2 | 2 |
| 3 Copyright 2003, 2007-2012 Free Software Foundation, Inc. | 3 Copyright 2003-2013 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This file is part of GDB. | 5 This file is part of GDB. |
| 6 | 6 |
| 7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
| 10 (at your option) any later version. | 10 (at your option) any later version. |
| 11 | 11 |
| 12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
| 13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 21 matching lines...) Expand all Loading... |
| 35 { | 35 { |
| 36 pthread_t thr; | 36 pthread_t thr; |
| 37 void *ret; | 37 void *ret; |
| 38 int x; | 38 int x; |
| 39 | 39 |
| 40 pthread_create (&thr, NULL, thread_func, NULL); | 40 pthread_create (&thr, NULL, thread_func, NULL); |
| 41 pthread_join (thr, &ret); | 41 pthread_join (thr, &ret); |
| 42 for (x = 0; x < 10; x++) | 42 for (x = 0; x < 10; x++) |
| 43 foo (); | 43 foo (); |
| 44 } | 44 } |
| OLD | NEW |