aboutsummaryrefslogtreecommitdiff
path: root/gcc/gthr-nks.h
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-09-05 16:05:06 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-09-05 16:05:06 +0000
commit8c27b7d4d1b35fa0d2f514a98d0524eff2278e40 (patch)
treef62d741d707e9201cb9c5b7758045bd92d649415 /gcc/gthr-nks.h
parent2a7e31df70cf600dfaa401cb426578994739bce0 (diff)
downloadgcc-8c27b7d4d1b35fa0d2f514a98d0524eff2278e40.zip
gcc-8c27b7d4d1b35fa0d2f514a98d0524eff2278e40.tar.gz
gcc-8c27b7d4d1b35fa0d2f514a98d0524eff2278e40.tar.bz2
c-common.c, [...]: Fix comment formatting.
* c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c, gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c, stor-layout.c, target.h, tree-cfg.c, tree-chrec.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c, tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c, tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c, tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h, vec.h: Fix comment formatting. From-SVN: r87105
Diffstat (limited to 'gcc/gthr-nks.h')
-rw-r--r--gcc/gthr-nks.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/gcc/gthr-nks.h b/gcc/gthr-nks.h
index f377245..cee8059 100644
--- a/gcc/gthr-nks.h
+++ b/gcc/gthr-nks.h
@@ -30,7 +30,7 @@ Boston, MA 02111-1307, USA. */
#define __gthr_nks_h
/* NKS threads specific definitions.
- Easy, since the interface is mostly one-to-one mapping. */
+ Easy, since the interface is mostly one-to-one mapping. */
#define __GTHREADS 1
@@ -63,7 +63,7 @@ static NXKey_t _objc_thread_storage;
/* Backend initialization functions */
-/* Initialize the threads subsystem. */
+/* Initialize the threads subsystem. */
static inline int
__gthread_objc_init_thread_system(void)
{
@@ -73,7 +73,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)
{
@@ -84,7 +84,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)
{
@@ -105,7 +105,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)
{
@@ -114,7 +114,7 @@ __gthread_objc_thread_set_priority(int priority)
return -1;
}
-/* Return the current thread's priority. */
+/* Return the current thread's priority. */
static inline int
__gthread_objc_thread_get_priority(void)
{
@@ -125,14 +125,14 @@ __gthread_objc_thread_get_priority(void)
return -1;
}
-/* Yield our process time to another thread. */
+/* Yield our process time to another thread. */
static inline void
__gthread_objc_thread_yield(void)
{
NXThreadYield();
}
-/* Terminate the current thread. */
+/* Terminate the current thread. */
static inline int
__gthread_objc_thread_exit(void)
{
@@ -143,21 +143,21 @@ __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)
{
(objc_thread_t) NXThreadGetId();
}
-/* Sets the thread's local storage pointer. */
+/* Sets the thread's local storage pointer. */
static inline int
__gthread_objc_thread_set_data(void *value)
{
return NXKeySetValue(_objc_thread_storage, value);
}
-/* Returns the thread's local storage pointer. */
+/* Returns the thread's local storage pointer. */
static inline void *
__gthread_objc_thread_get_data(void)
{
@@ -170,7 +170,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)
{
@@ -181,7 +181,7 @@ __gthread_objc_mutex_allocate(objc_mutex_t mutex)
return -1;
}
-/* Deallocate a mutex. */
+/* Deallocate a mutex. */
static inline int
__gthread_objc_mutex_deallocate(objc_mutex_t mutex)
{
@@ -193,14 +193,14 @@ __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)
{
return NXLock((NXMutex_t *)mutex->backend);
}
-/* 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)
{
@@ -218,7 +218,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)
{
@@ -229,7 +229,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)
{
@@ -246,14 +246,14 @@ __gthread_objc_condition_wait(objc_condition_t condition, objc_mutex_t mutex)
return NXCondWait((NXCond_t *)condition->backend, (NXMutex_t *)mutex->backend);
}
-/* 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)
{
return NXCondBroadcast((NXCond_t *)condition->backend);
}
-/* 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)
{
@@ -303,7 +303,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 NXKeySetValue (key, NULL);
return 0;