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

Side by Side Diff: src/untrusted/pthread/pthread_types.h

Issue 11299315: Cleanup: Fix various coding style issues in src/untrusted/pthread (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 8 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 6
7 /* 7 /*
8 * Native Client pthreads implementation layer 8 * Native Client pthreads implementation layer
9 */ 9 */
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 * use tls_base in a compatible way (which we already do). 54 * use tls_base in a compatible way (which we already do).
55 */ 55 */
56 typedef struct { 56 typedef struct {
57 void *tls_base; /* tls accesses are made relative to this base */ 57 void *tls_base; /* tls accesses are made relative to this base */
58 void *unused_dtv; /* increase compatibility with glibc's tcbhead_t */ 58 void *unused_dtv; /* increase compatibility with glibc's tcbhead_t */
59 int joinable; 59 int joinable;
60 int join_waiting; 60 int join_waiting;
61 nc_thread_memory_block_t *stack_node; 61 nc_thread_memory_block_t *stack_node;
62 nc_thread_memory_block_t *tls_node; 62 nc_thread_memory_block_t *tls_node;
63 nc_thread_function start_func; 63 nc_thread_function start_func;
64 void* state; 64 void *state;
65 /* 65 /*
66 * irt_thread_data is used when libpthread is linked into the IRT. 66 * irt_thread_data is used when libpthread is linked into the IRT.
67 * It is used for free()ing the thread block. 67 * It is used for free()ing the thread block.
68 * TODO(mseaborn): This plays a similar role to tls_node; the two 68 * TODO(mseaborn): This plays a similar role to tls_node; the two
69 * could be unified in future. 69 * could be unified in future.
70 */ 70 */
71 void *irt_thread_data; 71 void *irt_thread_data;
72 struct __nc_basic_thread_data *basic_data; 72 struct __nc_basic_thread_data *basic_data;
73 } nc_thread_descriptor_t; 73 } nc_thread_descriptor_t;
74 74
(...skipping 20 matching lines...) Expand all
95 95
96 96
97 #define MEMORY_BLOCK_ALLOCATION_SIZE(real_size) \ 97 #define MEMORY_BLOCK_ALLOCATION_SIZE(real_size) \
98 (sizeof(nc_thread_memory_block_t) + (real_size)) 98 (sizeof(nc_thread_memory_block_t) + (real_size))
99 99
100 #ifdef __cplusplus 100 #ifdef __cplusplus
101 } 101 }
102 #endif 102 #endif
103 103
104 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_PTHREAD_NC_PTHREAD_TYPES_H_ */ 104 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_PTHREAD_NC_PTHREAD_TYPES_H_ */
OLDNEW
« src/untrusted/pthread/nc_thread.c ('K') | « src/untrusted/pthread/pthread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698