Changeset f49a82f3 in rtems


Ignore:
Timestamp:
Jan 13, 2005, 8:25:52 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ab660e77
Parents:
83774d7
Message:

2005-01-13 Joel Sherrill <joel@…>

Ralf Corsepius <ralf.corsepius@…>

  • libcsupport/src/gxx_wrapper.c: Reflect GCC-4.0's gthr-rtems.h.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r83774d7 rf49a82f3  
     12005-01-13      Joel Sherrill <joel@oarcorp.com>
     2                Ralf Corsepius <ralf.corsepius@rtems.org>
     3
     4        * libcsupport/src/gxx_wrapper.c: Reflect GCC-4.0's gthr-rtems.h.
     5
    162005-01-09      Joel Sherrill <joel@oarcorp.com>
    27
  • cpukit/libcsupport/src/gxx_wrappers.c

    r83774d7 rf49a82f3  
    1717 */
    1818
     19/*
     20 * This file is only used if using gcc
     21 */
     22#if defined(__GNUC__)
     23
    1924#if HAVE_CONFIG_H
    2025#include "config.h"
     
    4045typedef int   __gthread_once_t;
    4146typedef void *__gthread_mutex_t;
    42 
     47typedef void *__gthread_recursive_mutex_t;
    4348
    4449/* uncomment this if you need to debug this interface */
     
    216221  return (rtems_semaphore_release( (rtems_id)*mutex ) ==  RTEMS_SUCCESSFUL) ? 0 :-1;
    217222}
     223
     224void rtems_gxx_recursive_mutex_init_function(__gthread_recursive_mutex_t *mutex)
     225{
     226  rtems_gxx_mutex_init(mutex);
     227}
     228
     229int rtems_gxx_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex)
     230{
     231  return rtems_gxx_mutex_lock(mutex);
     232}
     233
     234int rtems_gxx_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex)
     235{
     236  return rtems_gxx_mutex_trylock(mutex);
     237}
     238
     239int rtems_gxx_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex)
     240{
     241  return rtems_gxx_mutex_unlock(mutex);
     242}
     243
     244#endif /* __GNUC__ */
Note: See TracChangeset for help on using the changeset viewer.