Ulrich Drepper
f301ec162b
(__pthread_mutex_lock): Always initialize __m_owner.
...
(__pthread_mutex_trylock): Likewise.
(__pthread_mutex_unlock): Always clear __m_owner.
2000-03-16 21:29:42 +00:00
Ulrich Drepper
2c1ce4b36b
Fix last change.
2000-03-15 07:53:39 +00:00
Ulrich Drepper
9f96178daa
Update.
2000-03-15 07:53:09 +00:00
Ulrich Drepper
3fcbafec4e
Update.
2000-03-15 07:41:23 +00:00
Ulrich Drepper
e34fe5cf43
(pthread_cond_wait): Check whether mutex is owned by current thread
...
and return error if not.
(pthread_cond_timedwait): Likewise.
2000-03-15 07:39:53 +00:00
Ulrich Drepper
5eab8a3ca5
Update.
2000-03-15 07:12:17 +00:00
Ulrich Drepper
39b12a8f8f
(__pthread_once): Handle cancelled init function correctly.
...
(pthread_once_cancelhandler): New function.
2000-03-15 07:11:59 +00:00
Ulrich Drepper
db47a9384f
Update.
2000-02-23 02:44:28 +00:00
Ulrich Drepper
6b9f6f7e90
(SEM_FAILED): Use 0 not NULL.
2000-02-23 02:44:08 +00:00
Ulrich Drepper
ddb63e4535
Update.
2000-02-15 01:58:29 +00:00
Ulrich Drepper
59b5910f05
(pthread_cond_timedwait_relative_old): Tight loop with nanosleep does not
...
work either. Get absolute time inside the loop.
(pthread_cond_timedwait_relative_new): Likewise.
2000-02-15 01:31:08 +00:00
Ulrich Drepper
82b083a22a
Update.
2000-02-13 08:10:23 +00:00
Ulrich Drepper
0ef0d3838e
(pthread_cond_timedwait_relative_old): Undo last patch but keep the code
...
around. A bug in the kernel prevent us from using the code.
(pthread_cond_timedwait_relative_new): Likewise.
2000-02-13 08:09:42 +00:00
Ulrich Drepper
2d16a36701
Update.
2000-02-11 18:06:28 +00:00
Ulrich Drepper
66dcc06fe7
(pthread_cond_timedwait_relative_old): Do tight
...
loop around nanosleep calls instead of around most of the function
(pthread_cond_timedwait_relative_new): Likewise.
body. Got rid of backwards goto and one local.
2000-02-11 18:00:19 +00:00
Ulrich Drepper
f9e04c7b64
Update.
2000-01-31 08:21:50 +00:00
Ulrich Drepper
71a8b5e85a
(pthread_cond_timedwait_relative_old): Recompute time
...
before every nanosleep call to account for time spent in the rest
of the function.
(pthread_cond_timedwait_relative_new): Likewise.
2000-01-31 08:12:45 +00:00
Ulrich Drepper
0c5f810f53
Update.
2000-01-29 12:01:02 +00:00
Ulrich Drepper
450db0463b
(pthread_cond_timedwait_relative_old): Get remaining time from nanosleep call
...
so that in case we restart we only wait for the remaining time.
(pthread_cond_timedwait_relative_new): Likewise.
2000-01-29 11:50:18 +00:00
Ulrich Drepper
c2a589b9ec
Update.
2000-01-19 00:46:41 +00:00
Ulrich Drepper
9898fc9149
(pthread_allocate_stack): Compute guard page address correctly.
2000-01-19 00:13:49 +00:00
Ulrich Drepper
e81421899e
Update.
2000-01-12 12:01:38 +00:00
Ulrich Drepper
6051426cd0
(struct _pthread_rwlock_t): Define this name as well.
2000-01-12 11:58:41 +00:00
Ulrich Drepper
f9ee7d5f8e
(PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP): New definition.
2000-01-12 11:58:29 +00:00
Ulrich Drepper
066e075998
Implement requirements about when readers should get locks assigned.
2000-01-12 11:58:14 +00:00
Ulrich Drepper
68606f4ed5
(queue_is_empty): New function.
2000-01-12 11:57:59 +00:00
Ulrich Drepper
0f226bf382
(pthread_free): Free read/write lock lists.
2000-01-12 11:57:45 +00:00
Ulrich Drepper
a97d2d557d
(__pthread_initial_thread, pthread_manager_thread):
...
Add initializers for new fields.
2000-01-12 11:57:33 +00:00
Ulrich Drepper
cecbddd661
(pthread_readlock_info): New structure.
...
(_pthread_descr_struct): Add p_readlock_list, p_readlock_free, and
p_untracked_readlock_count.
2000-01-12 11:57:16 +00:00
Andreas Jaeger
6154bf4170
2000-01-06 Andreas Jaeger <aj@suse.de>
...
* pthread.c: Correct last patch: Remove extra initializers.
2000-01-06 09:37:15 +00:00
Ulrich Drepper
38c33a344c
Update.
2000-01-05 17:52:00 +00:00
Ulrich Drepper
33c01bff29
(__pthread_initial_thread, pthread_manager_thread): Adjust
...
initializers for struct _pthread_descr_struct change.
2000-01-05 17:51:40 +00:00
Ulrich Drepper
a80c9ed4cd
Update.
2000-01-05 17:22:52 +00:00
Ulrich Drepper
9e35df154c
(struct _pthread_descr_struct): Move new elements to the end.
2000-01-05 17:22:33 +00:00
Ulrich Drepper
c7c525dc10
Update.
2000-01-05 03:04:46 +00:00
Ulrich Drepper
666980df66
Redesigned how cancellation unblocks a thread from internal
...
cancellation points (sem_wait, pthread_join,
pthread_cond_{wait,timedwait}).
Cancellation won't eat a signal in any of these functions
(*required* by POSIX and Single Unix Spec!).
2000-01-05 03:04:25 +00:00
Ulrich Drepper
d4967fbb90
Update.
1999-12-28 22:10:02 +00:00
Ulrich Drepper
17b3b537bc
(__pthread_manager): Add one more cast to assignment of arg to prevent
...
warning on 64bit machines.
1999-12-28 22:09:19 +00:00
Ulrich Drepper
7881cf7a37
Update.
1999-12-28 22:06:52 +00:00
Ulrich Drepper
204f8589e7
Move stack_pointer definition to the beginning of the file.
1999-12-28 22:06:44 +00:00
Ulrich Drepper
1693b5c8be
Update.
1999-12-21 23:50:29 +00:00
Ulrich Drepper
28fc1f68aa
(pthread_handle_create): Set p_pid of new thread before calling the callback
...
function to report a new thread.
1999-12-21 23:50:08 +00:00
Ulrich Drepper
dea8f5e1a0
Update.
1999-12-21 08:18:51 +00:00
Ulrich Drepper
a1d05462fc
(pthread_initialize): Move getrlimit call after setting of errno.
1999-12-21 07:31:36 +00:00
Ulrich Drepper
123f2f2aa4
Update.
1999-12-02 08:28:56 +00:00
Ulrich Drepper
3774335c82
Move stack_pointer definition to the beginning.
1999-12-02 08:24:11 +00:00
Ulrich Drepper
9b6b9baa37
Update.
1999-11-23 22:05:34 +00:00
Ulrich Drepper
fe3d65781c
(pthread_start_thread_event): Initialize p_pid already here.
1999-11-23 22:05:24 +00:00
Ulrich Drepper
ab0befb809
Update.
1999-11-22 20:50:52 +00:00
Ulrich Drepper
cd794ec90f
(__pthread_manager_thread): Initialize p_lock.
...
(__pthread_initialize_manager): Respect event flags also for creation
of the manager thread.
1999-11-22 20:41:55 +00:00