Deleted Added
full compact
77c77
< /* Objective C. */
---
> /* Objective-C. */
119c119
< __gthread_objc_init_thread_system(void)
---
> __gthread_objc_init_thread_system (void)
130c130
< __gthread_objc_close_thread_system(void)
---
> __gthread_objc_close_thread_system (void)
142c142
< __gthread_objc_thread_detach(void (*func)(void *), void *arg)
---
> __gthread_objc_thread_detach (void (*func)(void *), void *arg)
149,151c149,151
<
< if ( !(pthread_create(&new_thread_handle, pthread_attr_default,
< (void *)func, arg)) )
---
>
> if (!(pthread_create (&new_thread_handle, pthread_attr_default,
> (void *) func, arg)))
154,155c154,155
< thread_id = *(objc_thread_t *)&new_thread_handle;
< pthread_detach(&new_thread_handle); /* Fully detach thread. */
---
> thread_id = *(objc_thread_t *) &new_thread_handle;
> pthread_detach (&new_thread_handle); /* Fully detach thread. */
159c159
<
---
>
165c165
< __gthread_objc_thread_set_priority(int priority)
---
> __gthread_objc_thread_set_priority (int priority)
185c185
<
---
>
187c187
< if (pthread_setprio(pthread_self(), sys_priority) >= 0)
---
> if (pthread_setprio (pthread_self (), sys_priority) >= 0)
196c196
< __gthread_objc_thread_get_priority(void)
---
> __gthread_objc_thread_get_priority (void)
202,203c202,203
< if ((sys_priority = pthread_getprio(pthread_self())) >= 0)
< {
---
> if ((sys_priority = pthread_getprio (pthread_self ())) >= 0)
> {
222c222
< __gthread_objc_thread_yield(void)
---
> __gthread_objc_thread_yield (void)
225c225
< pthread_yield();
---
> pthread_yield ();
230c230
< __gthread_objc_thread_exit(void)
---
> __gthread_objc_thread_exit (void)
234c234
< pthread_exit(&__objc_thread_exit_status);
---
> pthread_exit (&__objc_thread_exit_status);
242c242
< __gthread_objc_thread_id(void)
---
> __gthread_objc_thread_id (void)
246c246
< pthread_t self = pthread_self();
---
> pthread_t self = pthread_self ();
251c251
< return (objc_thread_t)1;
---
> return (objc_thread_t) 1;
256c256
< __gthread_objc_thread_set_data(void *value)
---
> __gthread_objc_thread_set_data (void *value)
259c259
< return pthread_setspecific(_objc_thread_storage, value);
---
> return pthread_setspecific (_objc_thread_storage, value);
269c269
< __gthread_objc_thread_get_data(void)
---
> __gthread_objc_thread_get_data (void)
275c275
< if ( !(pthread_getspecific(_objc_thread_storage, &value)) )
---
> if (!(pthread_getspecific (_objc_thread_storage, &value)))
288c288
< __gthread_objc_mutex_allocate(objc_mutex_t mutex)
---
> __gthread_objc_mutex_allocate (objc_mutex_t mutex)
292c292
< mutex->backend = objc_malloc(sizeof(pthread_mutex_t));
---
> mutex->backend = objc_malloc (sizeof (pthread_mutex_t));
294,300c294,300
< if (pthread_mutex_init((pthread_mutex_t *)mutex->backend,
< pthread_mutexattr_default))
< {
< objc_free(mutex->backend);
< mutex->backend = NULL;
< return -1;
< }
---
> if (pthread_mutex_init ((pthread_mutex_t *) mutex->backend,
> pthread_mutexattr_default))
> {
> objc_free (mutex->backend);
> mutex->backend = NULL;
> return -1;
> }
308c308
< __gthread_objc_mutex_deallocate(objc_mutex_t mutex)
---
> __gthread_objc_mutex_deallocate (objc_mutex_t mutex)
312,313c312,313
< if (pthread_mutex_destroy((pthread_mutex_t *)mutex->backend))
< return -1;
---
> if (pthread_mutex_destroy ((pthread_mutex_t *) mutex->backend))
> return -1;
315c315
< objc_free(mutex->backend);
---
> objc_free (mutex->backend);
324c324
< __gthread_objc_mutex_lock(objc_mutex_t mutex)
---
> __gthread_objc_mutex_lock (objc_mutex_t mutex)
327c327
< return pthread_mutex_lock((pthread_mutex_t *)mutex->backend);
---
> return pthread_mutex_lock ((pthread_mutex_t *) mutex->backend);
334c334
< __gthread_objc_mutex_trylock(objc_mutex_t mutex)
---
> __gthread_objc_mutex_trylock (objc_mutex_t mutex)
337c337
< && pthread_mutex_trylock((pthread_mutex_t *)mutex->backend) != 1)
---
> && pthread_mutex_trylock ((pthread_mutex_t *) mutex->backend) != 1)
345c345
< __gthread_objc_mutex_unlock(objc_mutex_t mutex)
---
> __gthread_objc_mutex_unlock (objc_mutex_t mutex)
348c348
< return pthread_mutex_unlock((pthread_mutex_t *)mutex->backend);
---
> return pthread_mutex_unlock ((pthread_mutex_t *) mutex->backend);
357c357
< __gthread_objc_condition_allocate(objc_condition_t condition)
---
> __gthread_objc_condition_allocate (objc_condition_t condition)
368c368
< __gthread_objc_condition_deallocate(objc_condition_t condition)
---
> __gthread_objc_condition_deallocate (objc_condition_t condition)
379c379
< __gthread_objc_condition_wait(objc_condition_t condition, objc_mutex_t mutex)
---
> __gthread_objc_condition_wait (objc_condition_t condition, objc_mutex_t mutex)
390c390
< __gthread_objc_condition_broadcast(objc_condition_t condition)
---
> __gthread_objc_condition_broadcast (objc_condition_t condition)
401c401
< __gthread_objc_condition_signal(objc_condition_t condition)
---
> __gthread_objc_condition_signal (objc_condition_t condition)