~ubuntu-branches/ubuntu/hardy/libgc/hardy-updates

« back to all changes in this revision

Viewing changes to include/gc_pthread_redirects.h

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Murray
  • Date: 2005-02-03 00:50:53 UTC
  • mto: (3.1.1 etch) (1.2.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050203005053-9c0v9r2qcm2g1cfp
Tags: upstream-6.4
ImportĀ upstreamĀ versionĀ 6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
  int GC_pthread_create(pthread_t *new_thread,
53
53
                        const pthread_attr_t *attr,
54
54
                        void *(*start_routine)(void *), void *arg);
 
55
#ifndef GC_DARWIN_THREADS
55
56
  int GC_pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);
 
57
#endif
56
58
  int GC_pthread_join(pthread_t thread, void **retval);
57
59
  int GC_pthread_detach(pthread_t thread);
58
60
 
 
61
#if defined(GC_OSF1_THREADS) \
 
62
    && defined(_PTHREAD_USE_MANGLED_NAMES_) && !defined(_PTHREAD_USE_PTDNAM_)
 
63
/* Unless the compiler supports #pragma extern_prefix, the Tru64 UNIX
 
64
   <pthread.h> redefines some POSIX thread functions to use mangled names.
 
65
   If so, undef them before redefining. */
 
66
# undef pthread_create
 
67
# undef pthread_join
 
68
# undef pthread_detach
 
69
#endif
 
70
 
59
71
# define pthread_create GC_pthread_create
 
72
# define pthread_join GC_pthread_join
 
73
# define pthread_detach GC_pthread_detach
 
74
 
 
75
#ifndef GC_DARWIN_THREADS
60
76
# define pthread_sigmask GC_pthread_sigmask
61
 
# define pthread_join GC_pthread_join
62
 
# define pthread_detach GC_pthread_detach
63
77
# define dlopen GC_dlopen
 
78
#endif
64
79
 
65
80
#endif /* GC_xxxxx_THREADS */
66
81