1 |
|
2002-11-09 Roland McGrath <roland@frob.com> |
2 |
|
|
3 |
|
* include/pthread/pthread.h: Avoid `__thread' as an identifier, |
4 |
|
since it might be a keyword. |
5 |
|
|
6 |
2002-11-02 Alfred M. Szmidt <ams@kemisten.nu> |
2002-11-02 Alfred M. Szmidt <ams@kemisten.nu> |
7 |
|
|
8 |
* sysdeps/generic/pt-key-delete.c, sysdeps/hurd/pt-key-delete.c |
* sysdeps/generic/pt-key-delete.c, sysdeps/hurd/pt-key-delete.c |
64 |
|
|
65 |
* sysdeps/hurd/pt-getspecific.c (pthread_getspecific): Add an |
* sysdeps/hurd/pt-getspecific.c (pthread_getspecific): Add an |
66 |
assert. |
assert. |
67 |
|
|
68 |
2002-09-28 Neal H. Walfield <neal@cs.uml.edu> |
2002-09-28 Neal H. Walfield <neal@cs.uml.edu> |
69 |
|
|
70 |
* sysdeps/generic/pt-cond-timedwait.c |
* sysdeps/generic/pt-cond-timedwait.c |
79 |
|
|
80 |
* sysdeps/mach/hurd/pt-sysdep.h (_pthread_self): Assert that |
* sysdeps/mach/hurd/pt-sysdep.h (_pthread_self): Assert that |
81 |
__pthread_threads is initialized. |
__pthread_threads is initialized. |
82 |
|
|
83 |
(__pthread_self): Beautify. |
(__pthread_self): Beautify. |
84 |
|
|
85 |
2002-09-28 Neal H. Walfield <neal@cs.uml.edu> |
2002-09-28 Neal H. Walfield <neal@cs.uml.edu> |
222 |
__pthread_kill. Remove weak alias. |
__pthread_kill. Remove weak alias. |
223 |
* sysdeps/generic/pt-atfork.c (pthread_atfork): Rename from |
* sysdeps/generic/pt-atfork.c (pthread_atfork): Rename from |
224 |
__pthread_atfork. Remove weak alias. |
__pthread_atfork. Remove weak alias. |
225 |
|
|
226 |
2002-09-27 Neal H. Walfield <neal@cs.uml.edu> |
2002-09-27 Neal H. Walfield <neal@cs.uml.edu> |
227 |
|
|
228 |
* pthread/pt-internal.h (__pthread_create_internal): Renamed from |
* pthread/pt-internal.h (__pthread_create_internal): Renamed from |
233 |
|
|
234 |
* Makefile: New file. |
* Makefile: New file. |
235 |
* tests/Makefile: New file. |
* tests/Makefile: New file. |
236 |
|
|
237 |
2002-09-27 Neal H. Walfield <neal@cs.uml.edu> |
2002-09-27 Neal H. Walfield <neal@cs.uml.edu> |
238 |
|
|
239 |
* sysdeps/generic/bits/barrier.h: Include <bits/spin-lock.h>. |
* sysdeps/generic/bits/barrier.h: Include <bits/spin-lock.h>. |
291 |
(pthread_getschedparam): New definition. |
(pthread_getschedparam): New definition. |
292 |
(pthread_setschedparam): New definition. |
(pthread_setschedparam): New definition. |
293 |
(pthread_setschedprio): New definition. |
(pthread_setschedprio): New definition. |
294 |
|
|
295 |
* sysdeps/generic/pt-getschedparam.c: New file. |
* sysdeps/generic/pt-getschedparam.c: New file. |
296 |
* sysdeps/generic/pt-mutex-getprioceiling.c: New file. |
* sysdeps/generic/pt-mutex-getprioceiling.c: New file. |
297 |
* sysdeps/generic/pt-mutex-setprioceiling.c: New file. |
* sysdeps/generic/pt-mutex-setprioceiling.c: New file. |
354 |
|
|
355 |
* pthread/pt-internal.h (__pthread_timedblock): New definition. |
* pthread/pt-internal.h (__pthread_timedblock): New definition. |
356 |
* sysdeps/mach/pt-timedblock.c: New file. |
* sysdeps/mach/pt-timedblock.c: New file. |
357 |
|
|
358 |
* include/pthread/pthread.h (pthread_mutex_timedlock): New |
* include/pthread/pthread.h (pthread_mutex_timedlock): New |
359 |
definition. |
definition. |
360 |
(pthread_cond_timedwait): Enable unconditionally. |
(pthread_cond_timedwait): Enable unconditionally. |
361 |
(pthread_rwlock_timedrdlock): New definition. |
(pthread_rwlock_timedrdlock): New definition. |
362 |
(pthread_rwlock_timedwrlock): New definition. |
(pthread_rwlock_timedwrlock): New definition. |
363 |
|
|
364 |
* sysdeps/generic/pt-mutex-timedlock.c: New file. |
* sysdeps/generic/pt-mutex-timedlock.c: New file. |
365 |
* sysdeps/generic/pt-mutex-lock.c (__pthread_mutex_lock): |
* sysdeps/generic/pt-mutex-lock.c (__pthread_mutex_lock): |
366 |
Reimplement in terms of __pthread_mutex_timedlock. |
Reimplement in terms of __pthread_mutex_timedlock. |
367 |
|
|
368 |
* sysdeps/generic/pt-cond-timedwait.c: New file. |
* sysdeps/generic/pt-cond-timedwait.c: New file. |
369 |
* sysdeps/generic/pt-cond-wait.c (pthread_cond_wait): Reimplement |
* sysdeps/generic/pt-cond-wait.c (pthread_cond_wait): Reimplement |
370 |
in terms of pthread_cond_timedwait. |
in terms of pthread_cond_timedwait. |
373 |
* sysdeps/generic/pt-rwlock-rdlock.c |
* sysdeps/generic/pt-rwlock-rdlock.c |
374 |
(__pthread_rwlock_rdlock): Reimplement in terms of |
(__pthread_rwlock_rdlock): Reimplement in terms of |
375 |
__pthread_rwlock_timedrdlock. |
__pthread_rwlock_timedrdlock. |
376 |
|
|
377 |
* sysdeps/generic/pt-rwlock-timedwrlock.c: New file. |
* sysdeps/generic/pt-rwlock-timedwrlock.c: New file. |
378 |
* sysdeps/generic/pt-rwlock-wrlock.c (__pthread_rwlock_wrlock): |
* sysdeps/generic/pt-rwlock-wrlock.c (__pthread_rwlock_wrlock): |
379 |
Reimplement in terms of __pthread_rwlock_timedwrlock. |
Reimplement in terms of __pthread_rwlock_timedwrlock. |
380 |
|
|
381 |
* sysdeps/generic/pt-cond-signal.c (cond_signal): Clear the |
* sysdeps/generic/pt-cond-signal.c (cond_signal): Clear the |
382 |
previous pointer of the thread which we decide to wake up. |
previous pointer of the thread which we decide to wake up. |
383 |
|
|
504 |
(__pthread_rwlock_rlock): Remove macro. |
(__pthread_rwlock_rlock): Remove macro. |
505 |
(__pthread_rwlock_wlock): Remove macro. |
(__pthread_rwlock_wlock): Remove macro. |
506 |
(__pthread_rwlock_unlock): Remove macro. |
(__pthread_rwlock_unlock): Remove macro. |
507 |
|
|
508 |
(__pthread_default_rwlockattr): New definition. |
(__pthread_default_rwlockattr): New definition. |
509 |
|
|
510 |
* pthread/pt-alloc.c (__pthread_alloc): Use |
* pthread/pt-alloc.c (__pthread_alloc): Use |
647 |
pt-thread-start.c, pt-sigstate-init.c, pt-sigstate-destroy.c |
pt-thread-start.c, pt-sigstate-init.c, pt-sigstate-destroy.c |
648 |
pt-sigstate.c. |
pt-sigstate.c. |
649 |
Remove pt-stack.c and pt-start.c. |
Remove pt-stack.c and pt-start.c. |
650 |
|
|
651 |
* pthread/pt-create.c (__pthread_create): Instead of calling |
* pthread/pt-create.c (__pthread_create): Instead of calling |
652 |
__pthread_start, first call __pthread_thread_alloc, then setup the |
__pthread_start, first call __pthread_thread_alloc, then setup the |
653 |
signal state and finally start the thread by calling |
signal state and finally start the thread by calling |
691 |
* sysdeps/mach/hurd/pt-sigstate-destroy.c: New file. |
* sysdeps/mach/hurd/pt-sigstate-destroy.c: New file. |
692 |
* sysdeps/mach/hurd/pt-sigstate-init.c: New file. |
* sysdeps/mach/hurd/pt-sigstate-init.c: New file. |
693 |
* sysdeps/mach/hurd/pt-sigstate.c: New file. |
* sysdeps/mach/hurd/pt-sigstate.c: New file. |
694 |
|
|
695 |
* sysdeps/mach/hurd/i386/pt-setup.c (__pthread_setup): Setup the |
* sysdeps/mach/hurd/i386/pt-setup.c (__pthread_setup): Setup the |
696 |
initial thread state but only if THREAD is not the main thread. |
initial thread state but only if THREAD is not the main thread. |
697 |
|
|
702 |
* sysdeps/mach/hurd/pt-destroy-signal-state.c: Likewise. |
* sysdeps/mach/hurd/pt-destroy-signal-state.c: Likewise. |
703 |
* sysdeps/mach/hurd/pt-init-signal-state.c: Likewise. |
* sysdeps/mach/hurd/pt-init-signal-state.c: Likewise. |
704 |
* sysdeps/mach/hurd/pt-sigstate.c: Likewise. |
* sysdeps/mach/hurd/pt-sigstate.c: Likewise. |
705 |
|
|
706 |
|
|
707 |
* pthread/pt-internal.h: Include <signal.h>. |
* pthread/pt-internal.h: Include <signal.h>. |
708 |
(__pthread_init_signal_state): New definition. |
(__pthread_init_signal_state): New definition. |
722 |
* pthread/pt-alloc.c (__pthread_alloc): Factor out initialization |
* pthread/pt-alloc.c (__pthread_alloc): Factor out initialization |
723 |
code into ... |
code into ... |
724 |
(initialize_pthread): ... this new function. |
(initialize_pthread): ... this new function. |
725 |
|
|
726 |
(__pthread_alloc): If reusing a thread structure fails, clean up |
(__pthread_alloc): If reusing a thread structure fails, clean up |
727 |
the mess correctly. |
the mess correctly. |
728 |
|
|
729 |
2002-09-21 Neal H. Walfield <neal@cs.uml.edu> |
2002-09-21 Neal H. Walfield <neal@cs.uml.edu> |
730 |
|
|
731 |
* pthread/pt-alloc.c (__pthread_alloc): Revert last change. |
* pthread/pt-alloc.c (__pthread_alloc): Revert last change. |
732 |
|
|
733 |
2002-09-21 Neal H. Walfield <neal@cs.uml.edu> |
2002-09-21 Neal H. Walfield <neal@cs.uml.edu> |
734 |
|
|
735 |
* pthread/pt-alloc.c (__pthread_alloc): Remove assert. |
* pthread/pt-alloc.c (__pthread_alloc): Remove assert. |
810 |
* sysdeps/mach/hurd/i386/pt-setup.c (stack_setup): Likewise. |
* sysdeps/mach/hurd/i386/pt-setup.c (stack_setup): Likewise. |
811 |
|
|
812 |
2002-09-17 Neal H. Walfield <neal@cs.uml.edu> |
2002-09-17 Neal H. Walfield <neal@cs.uml.edu> |
813 |
|
|
814 |
* Makefile.am (AM_CPPFLAGS): Add -D_IO_MTSAFE_IO. |
* Makefile.am (AM_CPPFLAGS): Add -D_IO_MTSAFE_IO. |
815 |
(SYSDEPS) [MACH]: Add lockfile.c. |
(SYSDEPS) [MACH]: Add lockfile.c. |
816 |
|
|
904 |
* sysdeps/generic/pt-key.h: Likewise. |
* sysdeps/generic/pt-key.h: Likewise. |
905 |
* sysdeps/generic/pt-setspecific.c: Likewise. |
* sysdeps/generic/pt-setspecific.c: Likewise. |
906 |
* sysdeps/generic/bits/thread-specific.h: Likewise. |
* sysdeps/generic/bits/thread-specific.h: Likewise. |
907 |
|
|
908 |
* sysdeps/hurd: New directory for files that only depend on a Hurd |
* sysdeps/hurd: New directory for files that only depend on a Hurd |
909 |
personality (and not the underlying microkernel). |
personality (and not the underlying microkernel). |
910 |
|
|
934 |
* pthread/pt-internal.h: Include <pt-key.h> |
* pthread/pt-internal.h: Include <pt-key.h> |
935 |
[! PTHREAD_KEY_MEMBERS]: Define it to be empty. |
[! PTHREAD_KEY_MEMBERS]: Define it to be empty. |
936 |
(struct __pthread): Include the value of PTHREAD_KEY_MEMBERS. |
(struct __pthread): Include the value of PTHREAD_KEY_MEMBERS. |
937 |
|
|
938 |
(__pthread_init_specific): New definition. |
(__pthread_init_specific): New definition. |
939 |
(__pthread_destroy_specific): Likewise. |
(__pthread_destroy_specific): Likewise. |
940 |
|
|
986 |
(PTHREAD_PROCESS_PRIVATE): New macro. |
(PTHREAD_PROCESS_PRIVATE): New macro. |
987 |
(PTHREAD_PROCESS_SHARED): Likewise. |
(PTHREAD_PROCESS_SHARED): Likewise. |
988 |
(pthread_barrierattr_t): New typedef. |
(pthread_barrierattr_t): New typedef. |
989 |
|
|
990 |
(pthread_barrierattr_init): New definition. |
(pthread_barrierattr_init): New definition. |
991 |
(pthread_barrierattr_destroy): Likewise. |
(pthread_barrierattr_destroy): Likewise. |
992 |
(pthread_barrierattr_getpshared): Likewise. |
(pthread_barrierattr_getpshared): Likewise. |
993 |
(pthread_barrierattr_setpshared): Likewise. |
(pthread_barrierattr_setpshared): Likewise. |
994 |
|
|
995 |
(pthread_barrier_t): New typedef. |
(pthread_barrier_t): New typedef. |
996 |
(PTHREAD_BARRIER_SERIAL_THREAD): New macro. |
(PTHREAD_BARRIER_SERIAL_THREAD): New macro. |
997 |
(pthread_barrier_init): New declaration. |
(pthread_barrier_init): New declaration. |
998 |
(pthread_barrier_destroy): Likewise. |
(pthread_barrier_destroy): Likewise. |
999 |
(pthread_barrier_wait): Likewise. |
(pthread_barrier_wait): Likewise. |
1000 |
|
|
1001 |
* pthread/pt-internal.h (__pthread_default_barrierattr): New |
* pthread/pt-internal.h (__pthread_default_barrierattr): New |
1002 |
definition. |
definition. |
1003 |
|
|
1026 |
* sysdeps/mach/hurd/pt-attr-setstackaddr.c: New file. |
* sysdeps/mach/hurd/pt-attr-setstackaddr.c: New file. |
1027 |
* sysdeps/mach/hurd/pt-attr-setstacksize.c: New file. |
* sysdeps/mach/hurd/pt-attr-setstacksize.c: New file. |
1028 |
* sysdeps/mach/hurd/i386/pt-setup.c: New file. |
* sysdeps/mach/hurd/i386/pt-setup.c: New file. |
1029 |
|
|
1030 |
* sysdeps/mach/hurd/i386/pt-setup.c (stack_setup): Setup the stack |
* sysdeps/mach/hurd/i386/pt-setup.c (stack_setup): Setup the stack |
1031 |
guard if necessary. |
guard if necessary. |
1032 |
|
|
1055 |
* sysdeps/generic/pt-attr-setstackaddr.c: New file. |
* sysdeps/generic/pt-attr-setstackaddr.c: New file. |
1056 |
* sysdeps/generic/pt-attr-setstacksize.c: New file. |
* sysdeps/generic/pt-attr-setstacksize.c: New file. |
1057 |
* sysdeps/generic/pt-attr.c: New file. |
* sysdeps/generic/pt-attr.c: New file. |
1058 |
|
|
1059 |
* sysdeps/generic/bits/thread-attr.h: New file. |
* sysdeps/generic/bits/thread-attr.h: New file. |
1060 |
|
|
1061 |
* Makefile.am (libpthread_a_SOURCES): Add pt-attr.c, |
* Makefile.am (libpthread_a_SOURCES): Add pt-attr.c, |
1062 |
pt-attr-destroy.c, pt-attr-getdetachstate.c, |
pt-attr-destroy.c, pt-attr-getdetachstate.c, |
1063 |
pt-attr-getguardsize.c, pt-attr-getinheritsched.c, |
pt-attr-getguardsize.c, pt-attr-getinheritsched.c, |
1075 |
(__pthread_inheritsched): New enumeration. |
(__pthread_inheritsched): New enumeration. |
1076 |
(__pthread_contentionscop): Likewise. |
(__pthread_contentionscop): Likewise. |
1077 |
(__pthread_detachstate): Beautify. |
(__pthread_detachstate): Beautify. |
1078 |
|
|
1079 |
(pthread_attr_t): Update declaration. |
(pthread_attr_t): Update declaration. |
1080 |
|
|
1081 |
(pthread_attr_init): New definition. |
(pthread_attr_init): New definition. |
1229 |
and use RUN_HOOK. |
and use RUN_HOOK. |
1230 |
|
|
1231 |
2002-08-22 Neal H. Walfield <neal@cs.uml.edu> |
2002-08-22 Neal H. Walfield <neal@cs.uml.edu> |
1232 |
|
|
1233 |
* pthread/pt-create.c: Include <signal.h>. |
* pthread/pt-create.c: Include <signal.h>. |
1234 |
|
|
1235 |
2002-08-22 Neal H. Walfield <neal@cs.uml.edu> |
2002-08-22 Neal H. Walfield <neal@cs.uml.edu> |
1236 |
|
|
1237 |
* sysdeps/mach/hurd/pt-docancel.c: New file. |
* sysdeps/mach/hurd/pt-docancel.c: New file. |
1238 |
* sysdeps/mach/hurd/pt-save-self.c: New file. |
* sysdeps/mach/hurd/pt-save-self.c: New file. |
1239 |
|
|
1240 |
2002-08-22 Neal H. Walfield <neal@cs.uml.edu> |
2002-08-22 Neal H. Walfield <neal@cs.uml.edu> |
1241 |
|
|
1242 |
* include/pthread/pthread.h: Include <sched.h> and <time.h>. |
* include/pthread/pthread.h: Include <sched.h> and <time.h>. |
1243 |
(pthread_mutexattr_t): Add prototype. |
(pthread_mutexattr_t): Add prototype. |
1244 |
(pthread_mutex_init): Likewise. |
(pthread_mutex_init): Likewise. |
1250 |
* sysdeps/generic/bits/pthread.h (pthread_equal): New function. |
* sysdeps/generic/bits/pthread.h (pthread_equal): New function. |
1251 |
|
|
1252 |
2002-08-22 Neal H. Walfield <neal@cs.uml.edu> |
2002-08-22 Neal H. Walfield <neal@cs.uml.edu> |
1253 |
|
|
1254 |
* pthread/pt-setcancelstate.c (pthread_setcancelstate): Add |
* pthread/pt-setcancelstate.c (pthread_setcancelstate): Add |
1255 |
explicit break to elide gcc warning. |
explicit break to elide gcc warning. |
1256 |
* pthread/pt-setcanceltype.c (pthread_setcanceltype): Likewise. |
* pthread/pt-setcanceltype.c (pthread_setcanceltype): Likewise. |
1297 |
* include/pthread: Moved from include/pthread. |
* include/pthread: Moved from include/pthread. |
1298 |
* include/lock-intern.h: Moved from include/lock-intern.h. |
* include/lock-intern.h: Moved from include/lock-intern.h. |
1299 |
* include/pthread.h: Moved from include/pthread.h. |
* include/pthread.h: Moved from include/pthread.h. |
1300 |
|
|
1301 |
* headers.m4: New file. |
* headers.m4: New file. |
1302 |
|
|
1303 |
2002-08-19 Neal H. Walfield <neal@cs.uml.edu> |
2002-08-19 Neal H. Walfield <neal@cs.uml.edu> |
1360 |
* bits/cancelation.h: ... to here. |
* bits/cancelation.h: ... to here. |
1361 |
* pthread/pthread.h (pthread_cleanup_pop): Moved from here ... |
* pthread/pthread.h (pthread_cleanup_pop): Moved from here ... |
1362 |
* bits/cancelation.h: ... to here. |
* bits/cancelation.h: ... to here. |
1363 |
|
|
1364 |
* pthread/pthread.h (pthread_cleanup_push): New definition. |
* pthread/pthread.h (pthread_cleanup_push): New definition. |
1365 |
* pthread/pthread.h (pthread_cleanup_pop): New definition. |
* pthread/pthread.h (pthread_cleanup_pop): New definition. |
1366 |
|
|
1374 |
* bits/spin-lock.h (__SPIN_LOCK_INITIALIZER): Likewise. |
* bits/spin-lock.h (__SPIN_LOCK_INITIALIZER): Likewise. |
1375 |
|
|
1376 |
2002-07-29 Neal H. Walfield <neal@cs.uml.edu> |
2002-07-29 Neal H. Walfield <neal@cs.uml.edu> |
1377 |
|
|
1378 |
* pthread/pthread.h: Include <bits/cancelation.h> and <assert.h>. |
* pthread/pthread.h: Include <bits/cancelation.h> and <assert.h>. |
1379 |
(PTHREAD_CANCEL_DISABLE): New macro. |
(PTHREAD_CANCEL_DISABLE): New macro. |
1380 |
(PTHREAD_CANCEL_ENABLE): New macro. |
(PTHREAD_CANCEL_ENABLE): New macro. |
1528 |
2002-07-24 Neal H. Walfield <neal@cs.uml.edu> |
2002-07-24 Neal H. Walfield <neal@cs.uml.edu> |
1529 |
|
|
1530 |
* pthread/pthread.h: New file imported from Mark's pthead package. |
* pthread/pthread.h: New file imported from Mark's pthead package. |
1531 |
|
|
1532 |
2002-07-24 Neal H. Walfield <neal@cs.uml.edu> |
2002-07-24 Neal H. Walfield <neal@cs.uml.edu> |
1533 |
|
|
1534 |
* bits/condition.h: New file imported from Mark's pthead package. |
* bits/condition.h: New file imported from Mark's pthead package. |
1535 |
* bits/mutex.h: Likewise. |
* bits/mutex.h: Likewise. |
1536 |
* bits/pthread.h: Likewise. |
* bits/pthread.h: Likewise. |
1548 |
|
|
1549 |
* Makefile.am (AM_CFLAGS): Library is no longer called libcrt0 but |
* Makefile.am (AM_CFLAGS): Library is no longer called libcrt0 but |
1550 |
libc. Adjust accordingly. |
libc. Adjust accordingly. |
|
|
|