| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 #include <errno.h> | 6 #include <errno.h> |
| 7 |
| 8 #include "native_client/src/include/nacl_defines.h" |
| 9 |
| 7 #if NACL_ANDROID | 10 #if NACL_ANDROID |
| 8 /* Android uses a non-canonical futex.h version that requires __user be set. */ | 11 /* Android uses a non-canonical futex.h version that requires __user be set. */ |
| 9 #include <linux/compiler.h> | 12 #include <linux/compiler.h> |
| 10 #endif | 13 #endif |
| 11 #include <linux/futex.h> | 14 #include <linux/futex.h> |
| 12 #include <signal.h> | 15 #include <signal.h> |
| 13 #include <sys/syscall.h> | 16 #include <sys/syscall.h> |
| 14 | 17 |
| 15 #include "native_client/src/include/concurrency_ops.h" | 18 #include "native_client/src/include/concurrency_ops.h" |
| 16 #include "native_client/src/shared/platform/nacl_check.h" | 19 #include "native_client/src/shared/platform/nacl_check.h" |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 NACL_APP_THREAD_SUSPENDING)); | 318 NACL_APP_THREAD_SUSPENDING)); |
| 316 | 319 |
| 317 if (natp->fault_signal == 0) { | 320 if (natp->fault_signal == 0) { |
| 318 return 0; | 321 return 0; |
| 319 } | 322 } |
| 320 *signal = natp->fault_signal; | 323 *signal = natp->fault_signal; |
| 321 natp->fault_signal = 0; | 324 natp->fault_signal = 0; |
| 322 AtomicIncrement(&natp->nap->faulted_thread_count, -1); | 325 AtomicIncrement(&natp->nap->faulted_thread_count, -1); |
| 323 return 1; | 326 return 1; |
| 324 } | 327 } |
| OLD | NEW |