Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Side by Side Diff: Python/thread_pthread.h

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Python/thread_lwp.h ('k') | Python/thread_sgi.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* Posix threads interface */ 2 /* Posix threads interface */
3 3
4 #include <stdlib.h> 4 #include <stdlib.h>
5 #include <string.h> 5 #include <string.h>
6 #if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR) 6 #if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR)
7 #define destructor xxdestructor 7 #define destructor xxdestructor
8 #endif 8 #endif
9 #include <pthread.h> 9 #include <pthread.h>
10 #if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR) 10 #if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR)
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 pthread_cond_t lock_released; 137 pthread_cond_t lock_released;
138 pthread_mutex_t mut; 138 pthread_mutex_t mut;
139 } pthread_lock; 139 } pthread_lock;
140 140
141 #define CHECK_STATUS(name) if (status != 0) { perror(name); error = 1; } 141 #define CHECK_STATUS(name) if (status != 0) { perror(name); error = 1; }
142 142
143 /* 143 /*
144 * Initialization. 144 * Initialization.
145 */ 145 */
146 146
147 #if defined(_HAVE_BSDI) 147 #ifdef _HAVE_BSDI
148 static 148 static
149 void _noop(void) 149 void _noop(void)
150 { 150 {
151 } 151 }
152 152
153 static void 153 static void
154 PyThread__init_thread(void) 154 PyThread__init_thread(void)
155 { 155 {
156 /* DO AN INIT BY STARTING THE THREAD */ 156 /* DO AN INIT BY STARTING THE THREAD */
157 static int dummy = 0; 157 static int dummy = 0;
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 623
624 void * 624 void *
625 PyThread_get_key_value(int key) 625 PyThread_get_key_value(int key)
626 { 626 {
627 return pthread_getspecific(key); 627 return pthread_getspecific(key);
628 } 628 }
629 629
630 void 630 void
631 PyThread_ReInitTLS(void) 631 PyThread_ReInitTLS(void)
632 {} 632 {}
OLDNEW
« no previous file with comments | « Python/thread_lwp.h ('k') | Python/thread_sgi.h » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+