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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122923
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
#else
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define __GTHREADS 1
#define __gthread_active_p() 1
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));
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 */