Skip to content

Commit

Permalink
Add pthread_equal inline function.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Jun 4, 2006
1 parent 1b8373f commit c26ca5e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

Expand Down
10 changes: 10 additions & 0 deletions nptl/sysdeps/pthread/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit c26ca5e

Please sign in to comment.