summaryrefslogtreecommitdiff
path: root/gcc/gthr-posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gthr-posix.h')
-rw-r--r--gcc/gthr-posix.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h
index 1cd82896c5e..fe9e584bbb7 100644
--- a/gcc/gthr-posix.h
+++ b/gcc/gthr-posix.h
@@ -30,7 +30,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define GCC_GTHR_POSIX_H
/* POSIX threads specific definitions.
- Easy, since the interface is just one-to-one mapping. */
+ Easy, since the interface is just one-to-one mapping. */
#define __GTHREADS 1
@@ -57,7 +57,7 @@ typedef pthread_mutex_t __gthread_mutex_t;
#pragma weak pthread_mutex_unlock
#ifdef _LIBOBJC
-/* Objective C. */
+/* Objective C. */
#pragma weak pthread_cond_broadcast
#pragma weak pthread_cond_destroy
#pragma weak pthread_cond_init
@@ -113,7 +113,7 @@ static void *thread_local_storage = NULL;
/* Backend initialization functions */
-/* Initialize the threads subsystem. */
+/* Initialize the threads subsystem. */
static inline int
__gthread_objc_init_thread_system(void)
{
@@ -135,7 +135,7 @@ __gthread_objc_init_thread_system(void)
return -1;
}
-/* Close the threads subsystem. */
+/* Close the threads subsystem. */
static inline int
__gthread_objc_close_thread_system(void)
{
@@ -149,7 +149,7 @@ __gthread_objc_close_thread_system(void)
/* Backend thread functions */
-/* Create a new thread of execution. */
+/* Create a new thread of execution. */
static inline objc_thread_t
__gthread_objc_thread_detach(void (*func)(void *), void *arg)
{
@@ -167,7 +167,7 @@ __gthread_objc_thread_detach(void (*func)(void *), void *arg)
return thread_id;
}
-/* Set the current thread's priority. */
+/* Set the current thread's priority. */
static inline int
__gthread_objc_thread_set_priority(int priority)
{
@@ -205,7 +205,7 @@ __gthread_objc_thread_set_priority(int priority)
}
}
-/* Return the current thread's priority. */
+/* Return the current thread's priority. */
static inline int
__gthread_objc_thread_get_priority(void)
{
@@ -223,7 +223,7 @@ __gthread_objc_thread_get_priority(void)
return OBJC_THREAD_INTERACTIVE_PRIORITY;
}
-/* Yield our process time to another thread. */
+/* Yield our process time to another thread. */
static inline void
__gthread_objc_thread_yield(void)
{
@@ -231,7 +231,7 @@ __gthread_objc_thread_yield(void)
sched_yield();
}
-/* Terminate the current thread. */
+/* Terminate the current thread. */
static inline int
__gthread_objc_thread_exit(void)
{
@@ -243,7 +243,7 @@ __gthread_objc_thread_exit(void)
return -1;
}
-/* Returns an integer value which uniquely describes a thread. */
+/* Returns an integer value which uniquely describes a thread. */
static inline objc_thread_t
__gthread_objc_thread_id(void)
{
@@ -253,7 +253,7 @@ __gthread_objc_thread_id(void)
return (objc_thread_t) 1;
}
-/* Sets the thread's local storage pointer. */
+/* Sets the thread's local storage pointer. */
static inline int
__gthread_objc_thread_set_data(void *value)
{
@@ -266,7 +266,7 @@ __gthread_objc_thread_set_data(void *value)
}
}
-/* Returns the thread's local storage pointer. */
+/* Returns the thread's local storage pointer. */
static inline void *
__gthread_objc_thread_get_data(void)
{
@@ -278,7 +278,7 @@ __gthread_objc_thread_get_data(void)
/* Backend mutex functions */
-/* Allocate a mutex. */
+/* Allocate a mutex. */
static inline int
__gthread_objc_mutex_allocate(objc_mutex_t mutex)
{
@@ -297,7 +297,7 @@ __gthread_objc_mutex_allocate(objc_mutex_t mutex)
return 0;
}
-/* Deallocate a mutex. */
+/* Deallocate a mutex. */
static inline int
__gthread_objc_mutex_deallocate(objc_mutex_t mutex)
{
@@ -327,7 +327,7 @@ __gthread_objc_mutex_deallocate(objc_mutex_t mutex)
return 0;
}
-/* Grab a lock on a mutex. */
+/* Grab a lock on a mutex. */
static inline int
__gthread_objc_mutex_lock(objc_mutex_t mutex)
{
@@ -340,7 +340,7 @@ __gthread_objc_mutex_lock(objc_mutex_t mutex)
return 0;
}
-/* Try to grab a lock on a mutex. */
+/* Try to grab a lock on a mutex. */
static inline int
__gthread_objc_mutex_trylock(objc_mutex_t mutex)
{
@@ -368,7 +368,7 @@ __gthread_objc_mutex_unlock(objc_mutex_t mutex)
/* Backend condition mutex functions */
-/* Allocate a condition. */
+/* Allocate a condition. */
static inline int
__gthread_objc_condition_allocate(objc_condition_t condition)
{
@@ -387,7 +387,7 @@ __gthread_objc_condition_allocate(objc_condition_t condition)
return 0;
}
-/* Deallocate a condition. */
+/* Deallocate a condition. */
static inline int
__gthread_objc_condition_deallocate(objc_condition_t condition)
{
@@ -413,7 +413,7 @@ __gthread_objc_condition_wait(objc_condition_t condition, objc_mutex_t mutex)
return 0;
}
-/* Wake up all threads waiting on this condition. */
+/* Wake up all threads waiting on this condition. */
static inline int
__gthread_objc_condition_broadcast(objc_condition_t condition)
{
@@ -423,7 +423,7 @@ __gthread_objc_condition_broadcast(objc_condition_t condition)
return 0;
}
-/* Wake up one thread waiting on this condition. */
+/* Wake up one thread waiting on this condition. */
static inline int
__gthread_objc_condition_signal(objc_condition_t condition)
{
@@ -453,7 +453,7 @@ __gthread_key_create (__gthread_key_t *key, void (*dtor) (void *))
static inline int
__gthread_key_dtor (__gthread_key_t key, void *ptr)
{
- /* Just reset the key value to zero. */
+ /* Just reset the key value to zero. */
if (ptr)
return pthread_setspecific (key, 0);
else