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

Side by Side Diff: src/trusted/service_runtime/nacl_signal.h

Issue 10392005: Thread suspension: Implement for Linux (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Comment about docs Created 8 years, 7 months 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 6
7 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ 7 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__
8 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ 1 8 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ 1
9 9
10 /* 10 /*
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 SIGTRACE= 5, 51 SIGTRACE= 5,
52 SIGABRT = 6, 52 SIGABRT = 6,
53 SIGBUS = 7, 53 SIGBUS = 7,
54 SIGFPE = 8, 54 SIGFPE = 8,
55 SIGKILL = 9, 55 SIGKILL = 9,
56 SIGSEGV = 11, 56 SIGSEGV = 11,
57 SIGSTKFLT = 16, 57 SIGSTKFLT = 16,
58 }; 58 };
59 #endif 59 #endif
60 60
61 #if NACL_LINUX
62 # define NACL_THREAD_SUSPEND_SIGNAL SIGUSR1
63 #endif
64
61 65
62 /* 66 /*
63 * Prototype for a signal handler. The handler will receive the POSIX 67 * Prototype for a signal handler. The handler will receive the POSIX
64 * signal number and an opaque platform dependent signal object. 68 * signal number and an opaque platform dependent signal object.
65 */ 69 */
66 typedef enum NaClSignalResult (*NaClSignalHandler)(int sig_num, void *ctx); 70 typedef enum NaClSignalResult (*NaClSignalHandler)(int sig_num, void *ctx);
67 71
68 72
69 /* 73 /*
70 * Allocates a stack suitable for passing to 74 * Allocates a stack suitable for passing to
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 /* 186 /*
183 * Platform specific code. Do not call directly. 187 * Platform specific code. Do not call directly.
184 */ 188 */
185 void NaClSignalHandlerInitPlatform(void); 189 void NaClSignalHandlerInitPlatform(void);
186 void NaClSignalHandlerFiniPlatform(void); 190 void NaClSignalHandlerFiniPlatform(void);
187 191
188 192
189 EXTERN_C_END 193 EXTERN_C_END
190 194
191 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ */ 195 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ */
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/nacl_app_thread.c ('k') | src/trusted/service_runtime/nacl_syscall_hook.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698