summaryrefslogtreecommitdiff
path: root/gcc/gthr-rtems.h
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-25 01:44:29 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-25 01:44:29 +0000
commitf41eaefec377fc86bc47be4e564f5a38dc8ec721 (patch)
treefec0d7208641e82cfadb6a1e50ebc2a2c82c2a33 /gcc/gthr-rtems.h
parent1c60bcecefb22e93977b0742c3146e626d4fcdea (diff)
downloadgcc-f41eaefec377fc86bc47be4e564f5a38dc8ec721.tar.gz
* configure.in: Add rtems as a supported thread model.
* gthr-rtems.h: Add missing entry point __gthread_active_p. * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44324 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-rtems.h')
-rw-r--r--gcc/gthr-rtems.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gthr-rtems.h b/gcc/gthr-rtems.h
index cb2d822abc9..d207db1dd54 100644
--- a/gcc/gthr-rtems.h
+++ b/gcc/gthr-rtems.h
@@ -62,6 +62,13 @@ extern int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex);
extern int rtems_gxx_mutex_unlock (__gthread_mutex_t *mutex);
+/* RTEMS threading is always active */
+static inline int
+__gthread_active_p (void)
+{
+ return 1;
+}
+
/* Wrapper calls */
static inline int
__gthread_once (__gthread_once_t *once, void (*func) ())