Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: src/trusted/service_runtime/linux/thread_suspension.c

Issue 788193003: Create a build_config header file. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698