| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Tests nacl_file library. | 5 // Tests nacl_file library. |
| 6 // | 6 // |
| 7 | 7 |
| 8 #include <errno.h> | 8 #include <errno.h> |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| 11 #include <stdlib.h> | 11 #include <stdlib.h> |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // Run the test from the main thread again, this time competing with | 205 // Run the test from the main thread again, this time competing with |
| 206 // the other threads. | 206 // the other threads. |
| 207 info.rseed = rand_r(&rseed); | 207 info.rseed = rand_r(&rseed); |
| 208 test_nacl_file_thread(&info); | 208 test_nacl_file_thread(&info); |
| 209 // Give the threads a chance to start racing before joining them. | 209 // Give the threads a chance to start racing before joining them. |
| 210 usleep(100000); | 210 usleep(100000); |
| 211 for (int i = 0; i < kNumThreads; ++i) { | 211 for (int i = 0; i < kNumThreads; ++i) { |
| 212 pthread_join(thread[i], NULL); | 212 pthread_join(thread[i], NULL); |
| 213 } | 213 } |
| 214 } | 214 } |
| OLD | NEW |