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

Side by Side Diff: src/nonsfi/linux/linux_pthread_private.h

Issue 1212613002: Non-SFI mode: Add Linux asynchronous signal support (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Disabled the async signal test for glibc Created 5 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The Native Client Authors. All rights reserved. 2 * Copyright 2015 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_SRC_NONSFI_LINUX_LINUX_PTHREAD_PRIVATE_H_ 7 #ifndef NATIVE_CLIENT_SRC_NONSFI_LINUX_LINUX_PTHREAD_PRIVATE_H_
8 #define NATIVE_CLIENT_SRC_NONSFI_LINUX_LINUX_PTHREAD_PRIVATE_H_ 1 8 #define NATIVE_CLIENT_SRC_NONSFI_LINUX_LINUX_PTHREAD_PRIVATE_H_ 1
9 9
10 #include "native_client/src/include/nacl_base.h" 10 #include "native_client/src/include/nacl_base.h"
11 #include "native_client/src/untrusted/irt/irt.h"
11 12
12 EXTERN_C_BEGIN 13 EXTERN_C_BEGIN
13 14
14 /* 15 /*
15 * Creates a new thread by calling clone(). This function does use the |stack| 16 * Creates a new thread by calling clone(). This function does use the |stack|
16 * parameter and the thread's entrypoint is |start_func| with |thread_ptr| as 17 * parameter and the thread's entrypoint is |start_func| with |thread_ptr| as
17 * its parameter. 18 * its parameter.
18 */ 19 */
19 int nacl_user_thread_create(void *(*start_func)(void *), void *stack, 20 int nacl_user_thread_create(void *(*start_func)(void *), void *stack,
20 void *thread_ptr); 21 void *thread_ptr, nacl_irt_tid_t *child_tid);
21 22
22 /* 23 /*
23 * Exits a thread started by |nacl_user_thread_create|. Threads started with 24 * Exits a thread started by |nacl_user_thread_create|. Threads started with
24 * pthread_create() should terminate by calling pthread_exit() instead. 25 * pthread_create() should terminate by calling pthread_exit() instead.
25 */ 26 */
26 void nacl_user_thread_exit(int32_t *stack_flag); 27 void nacl_user_thread_exit(int32_t *stack_flag);
27 28
28 EXTERN_C_END 29 EXTERN_C_END
29 30
30 #endif 31 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698