mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
Add pthread_equal inline function.
2006-06-04 Ulrich Drepper <drepper@redhat.com> * sysdeps/pthread/pthread.h: Add pthread_equal inline version. * sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden.
This commit is contained in:
parent
1b8373f475
commit
c26ca5e17d
@ -1,6 +1,10 @@
|
||||
2006-06-04 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/pthread/pthread.h: Add pthread_equal inline version.
|
||||
|
||||
2006-05-15 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/fork.h: Makr __fork_handlers as hidden.
|
||||
* sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden.
|
||||
|
||||
2006-05-11 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
|
@ -1100,6 +1100,16 @@ extern int pthread_atfork (void (*__prepare) (void),
|
||||
void (*__parent) (void),
|
||||
void (*__child) (void)) __THROW;
|
||||
|
||||
|
||||
#ifdef __USE_EXTERN_INLINES
|
||||
/* Optimizations. */
|
||||
extern __inline int
|
||||
__NTH (pthread_equal (pthread_t __thread1, pthread_t __thread2))
|
||||
{
|
||||
return __thread1 == __thread2;
|
||||
}
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* pthread.h */
|
||||
|
Loading…
Reference in New Issue
Block a user