Browse code

compat/os2threads: split long lines

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

KO Myung-Hun authored on 2016/02/15 00:20:35
Showing 1 changed files
... ...
@@ -71,7 +71,10 @@ static void thread_entry(void *arg)
71 71
     thread->result = thread->start_routine(thread->arg);
72 72
 }
73 73
 
74
-static av_always_inline int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg)
74
+static av_always_inline int pthread_create(pthread_t *thread,
75
+                                           const pthread_attr_t *attr,
76
+                                           void *(*start_routine)(void*),
77
+                                           void *arg)
75 78
 {
76 79
     thread->start_routine = start_routine;
77 80
     thread->arg = arg;
... ...
@@ -92,7 +95,8 @@ static av_always_inline int pthread_join(pthread_t thread, void **value_ptr)
92 92
     return 0;
93 93
 }
94 94
 
95
-static av_always_inline int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr)
95
+static av_always_inline int pthread_mutex_init(pthread_mutex_t *mutex,
96
+                                               const pthread_mutexattr_t *attr)
96 97
 {
97 98
     DosCreateMutexSem(NULL, (PHMTX)mutex, 0, FALSE);
98 99
 
... ...
@@ -120,7 +124,8 @@ static av_always_inline int pthread_mutex_unlock(pthread_mutex_t *mutex)
120 120
     return 0;
121 121
 }
122 122
 
123
-static av_always_inline int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr)
123
+static av_always_inline int pthread_cond_init(pthread_cond_t *cond,
124
+                                              const pthread_condattr_t *attr)
124 125
 {
125 126
     DosCreateEventSem(NULL, &cond->event_sem, DCE_POSTONE, FALSE);
126 127
     DosCreateEventSem(NULL, &cond->ack_sem, DCE_POSTONE, FALSE);
... ...
@@ -156,7 +161,8 @@ static av_always_inline int pthread_cond_broadcast(pthread_cond_t *cond)
156 156
     return 0;
157 157
 }
158 158
 
159
-static av_always_inline int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex)
159
+static av_always_inline int pthread_cond_wait(pthread_cond_t *cond,
160
+                                              pthread_mutex_t *mutex)
160 161
 {
161 162
     __atomic_increment(&cond->wait_count);
162 163
 
... ...
@@ -173,7 +179,8 @@ static av_always_inline int pthread_cond_wait(pthread_cond_t *cond, pthread_mute
173 173
     return 0;
174 174
 }
175 175
 
176
-static av_always_inline int pthread_once(pthread_once_t *once_control, void (*init_routine)(void))
176
+static av_always_inline int pthread_once(pthread_once_t *once_control,
177
+                                         void (*init_routine)(void))
177 178
 {
178 179
     if (!once_control->done)
179 180
     {