[PATCH] Thread support for TPF
Zack Weinberg
zack@codesourcery.com
Wed Sep 22 16:58:00 GMT 2004
Ulrich Weigand <weigand@i1.informatik.uni-erlangen.de> writes:
> + static inline int
> + __gthread_active_p (void)
> + {
> + return 1;
> + }
> +
> + static inline int
> + __gthread_once (__gthread_once_t *once, void (*func) (void))
> + {
> + if (__tpf_pthread_active ())
> + return pthread_once (once, func);
> + else
> + return -1;
> + }
Why this instead of mapping __gthread_active_p to
__tpf_pthread_active?
zw
More information about the Gcc-patches
mailing list