Roland McGrath
c727f03253
Deconditionalize use of LLL_LOCK_INITIALIZER in bits/libc-lock.h.
2014-05-01 13:08:30 -07:00
Adhemerval Zanella
01f8eac224
Move __PTHREAD_SPINS definition to architecture specific header
...
This patch moves the __PTHREAD_SPINS definition to arch specific header
since pthread_mutex_t layout is also arch specific. This leads to no
need to defining __PTHREAD_MUTEX_HAVE_ELISION and thus removing of the
undefined compiler warning.
2014-04-09 06:41:44 -05:00
Will Newton
04ec140a2e
Revert "Fix __PTHREAD_MUTEX_HAVE_ELISION -Wundef warning"
...
This reverts commit 788bba368c
.
2014-03-17 20:40:33 +00:00
Will Newton
788bba368c
Fix __PTHREAD_MUTEX_HAVE_ELISION -Wundef warning
...
ChangeLog:
2014-03-17 Will Newton <will.newton@linaro.org>
* nptl/sysdeps/pthread/pthread.h: Check
__PTHREAD_MUTEX_HAVE_ELISION is defined before testing
its value.
2014-03-17 16:05:22 +00:00
Siddhesh Poyarekar
fcd89ebe4f
Get rid of __LT_SPINLOCK_INIT
...
We got rid of LinuxThreads in 2005, but we didn't remove
__LT_SPINLOCK_INIT back then. Do it now.
* nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
&& !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
Remove.
2014-03-17 19:35:11 +05:30
Roland McGrath
d7329d4b4d
Fix two stray cases using #ifdef vs #if for TLS_TCB_AT_TP.
2014-03-14 10:46:38 -07:00
Ondřej Bílka
a1ffb40e32
Use glibc_likely instead __builtin_expect.
2014-02-10 15:07:12 +01:00
Allan McRae
d4697bc93d
Update copyright notices with scripts/update-copyrights
2014-01-01 22:00:23 +10:00
Mike Frysinger
cb8a6dbd17
rename configure.in to configure.ac
...
Autoconf has been deprecating configure.in for quite a long time.
Rename all our configure.in and preconfigure.in files to .ac.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-10-30 17:32:08 +10:00
Siddhesh Poyarekar
c8886d0abf
Use the mutex member of the argumen in __libc_lock_*_recursive
2013-09-27 07:59:26 +05:30
Ondřej Bílka
382466e04e
Fix typos.
2013-08-30 18:08:59 +02:00
Andi Kleen
b023e4ca99
Add new internal mutex type flags for elision.
...
Add Enable/disable flags used internally
Extend the mutex initializers to have the fields needed for
elision. The layout stays the same, and this is not visible
to programs.
These changes are not exposed outside pthread
2013-07-02 08:46:54 -07:00
Siddhesh Poyarekar
61dd6208fb
New API to set default thread attributes
...
This patch introduces two new convenience functions to set the default
thread attributes used for creating threads. This allows a programmer
to set the default thread attributes just once in a process and then
run pthread_create without additional attributes.
2013-06-15 12:24:15 +05:30
Ondrej Bilka
416641e687
Fix previous commit.
2013-06-08 23:07:18 +02:00
Ondrej Bilka
e3f36662ee
Silence warning: __inline is not at beginning of declaration.
2013-06-08 20:03:24 +02:00
Ryan S. Arnold
e054f49430
Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).
2013-05-16 11:32:54 -05:00
Siddhesh Poyarekar
ffaa74cf68
Fix build warnings in some test cases
...
Include stdlib.h to get declaration of exit(3)
2013-02-18 18:17:05 +05:30
Joseph Myers
e97ed6ddbe
Remove bp-sym.h and BP_SYM uses from C code.
2013-02-14 13:12:02 +00:00
Joseph Myers
568035b787
Update copyright notices with scripts/update-copyrights.
2013-01-02 19:05:09 +00:00
Carlos O'Donell
0d522f6417
Fix formatting in nptl/sysdeps/pthread/pthread.h.
...
The macro pthread_cleanup_push_defer_np in pthread.h has a misaligned
line continuation marker. This marker was previously aligned, but
recent changes have moved it out of alignment. This change realigns
the marker. This also reduces the diff against the hppa version of
pthread.h where the marker is aligned.
2012-10-10 23:28:52 -04:00
Roland McGrath
b8493de0ec
Add missing magic to GLIBC_PROVIDES.
2012-10-09 15:41:30 -07:00
Jeff Law
97bc38d7a5
[BZ #14583 ]
...
* sysdeps/pthread/pthread.h: Fix prototype of __sigsetjmp.
2012-09-14 14:31:29 -06:00
H.J. Lu
9503345f12
Remove unused __rtld_lock_init_recursive macro
2012-09-13 09:58:58 -07:00
Maxim Kuvyrkov
309becf120
Optimize __libc_lock_lock and __libc_lock_trylock for MIPS.
2012-08-15 16:44:30 -07:00
Joseph Myers
b36137f1d6
Remove __ASSUME_TGKILL.
2012-08-08 23:22:53 +00:00
Joseph Myers
93df14eee8
Remove some pre-2.6.16 Linux kernel conditionals.
2012-08-07 23:03:35 +00:00
Siddhesh Poyarekar
4af3879c26
Wrap __builtin_expect in pthread.h
...
[BZ #14188 ]
This fixes compilation of programs using pthread_cleanup_push built
with non-gcc compilers and older gcc compilers.
2012-06-04 11:53:57 +05:30
H.J. Lu
245a11d7bd
Add __PTHREAD_RWLOCK_INT_FLAGS_SHARED
2012-05-14 16:48:59 -07:00
H.J. Lu
1f59b0b121
Check __PTHREAD_MUTEX_HAVE_PREV for mutex initializers
2012-05-11 10:10:37 -07:00
Thomas Schwinge
be971a2b1c
Hurd: libc_once_get
2012-05-10 15:57:24 -07:00
Siddhesh Poyarekar
6e236b9276
move libgcc_s soname definition to shlib-versions
2012-04-26 09:19:54 +05:30
Joseph Myers
90ad551f73
Make pthread.h define all symbols from time.h.
...
See:
http://www.pasc.org/interps/unofficial/db/p1003.1c/pasc-1003.1c-46.html
http://www.pasc.org/interps/unofficial/db/p1003.1/pasc-1003.1-86.html
https://www.opengroup.org/sophocles/show_mail.tpl?CALLER=index.tpl&source=L&listname=austin-group-l&id=17302
(Geoff Clare, austin-group-l, 9 Mar 2012)
2012-03-09 21:10:45 +00:00
Joseph Myers
e7dbb1bec3
Weaken two NPTL configure link tests to compile tests.
2012-03-07 19:34:22 +00:00
Ulrich Drepper
9463518d0d
Remove private information from libc-lock.h
2012-03-06 23:37:35 -05:00
Ulrich Drepper
d94a467080
Add first fixes for conformtest for POSIX2008
2012-02-26 21:32:56 -05:00
Ulrich Drepper
4efeffc1d5
Fix up POSIX testing in conformtest
2012-02-26 13:17:27 -05:00
Joseph Myers
0e7dfaef51
Remove old initfini mechanism.
2012-02-21 00:46:01 +00:00
Paul Eggert
59ba27a63a
Replace FSF snail mail address with URLs.
2012-02-09 23:18:22 +00:00
Ulrich Drepper
8898f02074
Add const attribute to pthread_equal
2012-01-10 19:37:35 -05:00
Ulrich Drepper
356fa562ec
Consistently added return to pthread_exit
2012-01-10 19:02:21 -05:00
Ulrich Drepper
a784e50247
Remove pre-ISO C support
...
No more __const.
2012-01-07 23:57:22 -05:00
Ulrich Drepper
ee9e064083
Use __pthread_get_minstack in more places
2011-12-22 22:58:17 -05:00
Andreas Schwab
3871f58f06
Don't mark memory synchronisation functions as leaf
2011-10-27 17:20:14 +02:00
Andreas Schwab
7a775e6b3d
Avoid race between {,__de}allocate_stack and __reclaim_stacks during fork
2011-09-15 15:36:18 +02:00
Ulrich Drepper
02d46fc4b9
Simplify malloc initialization
...
Singificantly reduce the code needed at malloc initialization. In
the process getpagesize is simplified by always initializing
GLRO(dl_pagesize).
2011-09-10 21:47:36 -04:00
Ulrich Drepper
7a03a9c8c4
Add read barriers in cancellation initialization
2011-07-22 23:48:22 -04:00
Ulrich Drepper
ecaddd6699
Rebuild configure scripts
2011-07-06 21:29:02 -04:00
Ulrich Drepper
6f8326cacd
Fix robust mutex handling after fork
2011-06-30 20:41:34 -04:00
Ulrich Drepper
e943389325
Remove use of ranlib.
2011-02-15 14:52:29 -05:00
Ulrich Drepper
70181fddf1
Change setgroups to affect all the threads in the process.
2011-01-14 08:42:11 -05:00