summaryrefslogtreecommitdiff
path: root/gcc/gthr.h
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-11 12:07:25 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-11 12:07:25 +0000
commitf88093668c69ca7e0e6addd93e96586267aed2e1 (patch)
tree722397066de1f2780c4301c0a26524b7d9b93805 /gcc/gthr.h
parentd55444b26c943e0c3ef8d890aa8081151c49b0f9 (diff)
downloadgcc-f88093668c69ca7e0e6addd93e96586267aed2e1.tar.gz
Patch from Teemu Torma to fix Solaris 2.6 EH failures.
* gthr.h: Changed the comment about return values. * gthr-solaris.h (__gthread_once): Do not use errno; return the error number instead of -1. (__gthread_key_create): Any non-zero return value is an error. * libgcc2.c (eh_context_initialize): Check for non-zero return value from __gthread_once. Check that the value of get_eh_context was really changed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18480 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr.h')
-rw-r--r--gcc/gthr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gthr.h b/gcc/gthr.h
index 54ad6b04c8d..9c5365426bf 100644
--- a/gcc/gthr.h
+++ b/gcc/gthr.h
@@ -65,7 +65,8 @@ Boston, MA 02111-1307, USA. */
int __gthread_mutex_trylock (__gthread_mutex_t *mutex);
int __gthread_mutex_unlock (__gthread_mutex_t *mutex);
- All functions returning int should return 0 on success, -1 on error.
+ All functions returning int should return zero on success or the error
+ number. If the operation is not supported, -1 is returned.
Currently supported threads packages are
POSIX threads with -D_PTHREADS