200x-xx-xx Richard Sandiford <richard@codesourcery.com> Phil Edwards <phil@codesourcery.com>

gcc/
200x-xx-xx  Richard Sandiford  <richard@codesourcery.com>
	    Phil Edwards  <phil@codesourcery.com>

	* gthr-vxworks.h: Add an extern "C" wrapper for C++.
	(__gthread_once_t): Remove busy field for RTPs.
	(__GTHREAD_ONCE_INIT): Update accordingly.

Co-Authored-By: Phil Edwards <phil@codesourcery.com>

From-SVN: r122923
This commit is contained in:
Richard Sandiford 2007-03-14 13:58:21 +00:00 committed by Richard Sandiford
parent cd773ac48b
commit ac0d72f6f0
2 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2007-03-14 Richard Sandiford <richard@codesourcery.com>
Phil Edwards <phil@codesourcery.com>
* gthr-vxworks.h: Add an extern "C" wrapper for C++.
(__gthread_once_t): Remove busy field for RTPs.
(__GTHREAD_ONCE_INIT): Update accordingly.
2007-03-14 Richard Sandiford <richard@codesourcery.com>
* doc/invoke.texi: Document VxWorks options.

View File

@ -37,6 +37,10 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#else
#ifdef __cplusplus
extern "C" {
#endif
#define __GTHREADS 1
#define __gthread_active_p() 1
@ -103,12 +107,18 @@ __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *mutex)
typedef struct
{
#ifndef __RTP__
volatile unsigned char busy;
#endif
volatile unsigned char done;
}
__gthread_once_t;
#define __GTHREAD_ONCE_INIT { 0, 0 }
#ifndef __RTP__
# define __GTHREAD_ONCE_INIT { 0, 0 }
#else
# define __GTHREAD_ONCE_INIT { 0 }
#endif
extern int __gthread_once (__gthread_once_t *once, void (*func)(void));
@ -125,6 +135,10 @@ extern int __gthread_key_delete (__gthread_key_t key);
extern void *__gthread_getspecific (__gthread_key_t key);
extern int __gthread_setspecific (__gthread_key_t key, void *ptr);
#ifdef __cplusplus
}
#endif
#endif /* not _LIBOBJC */
#endif /* gthr-vxworks.h */