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

Unified Diff: src/untrusted/pthread/pthread_types.h

Issue 951583004: Implement pthread_rwlock functions for NaCl newlib (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 9 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/untrusted/pthread/pthread_internal.h ('k') | tests/threads/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/pthread/pthread_types.h
diff --git a/src/untrusted/pthread/pthread_types.h b/src/untrusted/pthread/pthread_types.h
index df587815c4a58896bd0cebd883304a9844dbe11a..d4c142190a418a4460c84cd60e483b20d997f1c2 100644
--- a/src/untrusted/pthread/pthread_types.h
+++ b/src/untrusted/pthread/pthread_types.h
@@ -47,11 +47,12 @@ struct __nc_basic_thread_data;
* ("tcbhead_t") as long as we keep the field "dtv" untouched and
* use tls_base in a compatible way (which we already do).
*/
-typedef struct {
+typedef struct nc_thread_descriptor {
void *tls_base; /* tls accesses are made relative to this base */
void *unused_dtv; /* increase compatibility with glibc's tcbhead_t */
int joinable;
int join_waiting;
+ unsigned int rdlock_count; /* number of rdlocks this thread holds */
nc_thread_memory_block_t *stack_node;
nc_thread_memory_block_t *tls_node;
nc_thread_function start_func;
« no previous file with comments | « src/untrusted/pthread/pthread_internal.h ('k') | tests/threads/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698