diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-12 13:10:33 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-12 13:10:33 +0000 |
commit | 5a54c45ed5c603e6fc35b444d37d52b6f076d5d2 (patch) | |
tree | a1d7f27ef543bf7ddeb79c9da064d112557b3ead /gcc/gthr-single.h | |
parent | b2975779eb358805eab47e6ea2ad56b43769fcd8 (diff) | |
download | gcc-5a54c45ed5c603e6fc35b444d37d52b6f076d5d2.tar.gz |
* gthr-dce.h: Fix comment formatting.
* gthr-posix.h: Likewise.
* gthr-single.h: Likewise.
* gthr-solaris.h: Likewise.
* gthr-vxworks.h: Likewise.
* gthr-win32.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46229 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-single.h')
-rw-r--r-- | gcc/gthr-single.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gcc/gthr-single.h b/gcc/gthr-single.h index a706f5d39f7..64ff354131d 100644 --- a/gcc/gthr-single.h +++ b/gcc/gthr-single.h @@ -29,7 +29,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef GCC_GTHR_SINGLE_H #define GCC_GTHR_SINGLE_H -/* Just provide compatibility for mutex handling. */ +/* Just provide compatibility for mutex handling. */ typedef int __gthread_mutex_t; @@ -48,7 +48,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) { @@ -56,7 +56,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) { @@ -66,7 +66,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 * UNUSED(arg)) { @@ -74,7 +74,7 @@ __gthread_objc_thread_detach(void (* func)(void *), void * UNUSED(arg)) return NULL; } -/* Set the current thread's priority. */ +/* Set the current thread's priority. */ static inline int __gthread_objc_thread_set_priority(int UNUSED(priority)) { @@ -82,21 +82,21 @@ __gthread_objc_thread_set_priority(int UNUSED(priority)) return -1; } -/* Return the current thread's priority. */ +/* Return the current thread's priority. */ static inline int __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) { return; } -/* Terminate the current thread. */ +/* Terminate the current thread. */ static inline int __gthread_objc_thread_exit(void) { @@ -106,15 +106,15 @@ __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) { - /* No thread support, use 1. */ + /* No thread support, use 1. */ 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) { @@ -122,7 +122,7 @@ __gthread_objc_thread_set_data(void *value) return 0; } -/* Returns the thread's local storage pointer. */ +/* Returns the thread's local storage pointer. */ static inline void * __gthread_objc_thread_get_data(void) { @@ -131,21 +131,21 @@ __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 UNUSED(mutex)) { return 0; } -/* Deallocate a mutex. */ +/* Deallocate a mutex. */ static inline int __gthread_objc_mutex_deallocate(objc_mutex_t UNUSED(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 UNUSED(mutex)) { @@ -153,7 +153,7 @@ __gthread_objc_mutex_lock(objc_mutex_t UNUSED(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 UNUSED(mutex)) { @@ -170,14 +170,14 @@ __gthread_objc_mutex_unlock(objc_mutex_t UNUSED(mutex)) /* Backend condition mutex functions */ -/* Allocate a condition. */ +/* Allocate a condition. */ static inline int __gthread_objc_condition_allocate(objc_condition_t UNUSED(condition)) { return 0; } -/* Deallocate a condition. */ +/* Deallocate a condition. */ static inline int __gthread_objc_condition_deallocate(objc_condition_t UNUSED(condition)) { @@ -192,14 +192,14 @@ __gthread_objc_condition_wait(objc_condition_t UNUSED(condition), 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 UNUSED(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 UNUSED(condition)) { |