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

Unified Diff: src/untrusted/pthread/nc_thread.c

Issue 1222753005: Non-SFI mode: Use clone() instead of pthread_create() (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Addressed feedback 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/nonsfi/linux/linux_pthread_private.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/pthread/nc_thread.c
diff --git a/src/untrusted/pthread/nc_thread.c b/src/untrusted/pthread/nc_thread.c
index 8b0fe042179cc507530b26668fc4ba32b2b256be..7be3a7446335d260273759e7f3249aa44bb641c4 100644
--- a/src/untrusted/pthread/nc_thread.c
+++ b/src/untrusted/pthread/nc_thread.c
@@ -272,8 +272,6 @@ void __nc_initialize_globals(void) {
__nc_thread_initialized = 1;
}
-#if defined(NACL_IN_IRT)
-
/*
* This is used by the IRT for user threads. We initialize all fields
* so that we get predictable behaviour in case some IRT code does an
@@ -284,7 +282,7 @@ void __nc_initialize_unjoinable_thread(struct nc_combined_tdb *tdb) {
tdb->tdb.joinable = 0;
}
-#else
+#if !defined(NACL_IN_IRT)
/*
* Will be called from the library startup code,
« no previous file with comments | « src/nonsfi/linux/linux_pthread_private.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698