Skip to content

Commit

Permalink
Add const attribute to pthread_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jan 11, 2012
1 parent 356fa56 commit 8898f02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2012-01-10 Ulrich Drepper <drepper@gmail.com>

* sysdeps/pthread/pthread.h: Add const attribute to pthread_equal.

* pthreadP.h: Add noreturn to __pthread_exit.
* sysdeps/pthread/pthread-functions.h: Likewise for ptr___pthread_exit.

Expand Down
3 changes: 2 additions & 1 deletion nptl/sysdeps/pthread/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ extern int pthread_detach (pthread_t __th) __THROW;
extern pthread_t pthread_self (void) __THROW __attribute__ ((__const__));

/* Compare two thread identifiers. */
extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __THROW;
extern int pthread_equal (pthread_t __thread1, pthread_t __thread2)
__THROW __attribute__ ((__const__));


/* Thread attribute handling. */
Expand Down

0 comments on commit 8898f02

Please sign in to comment.