Code Log


Commit Date  
[e2fd6e] by rpj rpj

2000-07-25 Ross Johnson <rpj@special.ise.canberra.edu.au>

* sched.c (sched_get_priority_max): Handle different WinCE and
Win32 priority values together.
(sched_get_priority_min): Ditto.
- Tristan Savatier <tristan@mpegtv.com>

* create.c (pthread_create): Force new threads to wait until
pthread_create has the new thread's handle; we also retain
a local copy of the handle for internal use until
pthread_create returns.

* private.c (_pthread_threadStart): Initialise ei[].
(_pthread_threadStart): When beginthread is used to start the
thread, force waiting until the creator thread had the
thread handle.

* cancel.c (_pthread_cancel_thread): Include context switch
code for defined(_X86_) environments in addition to _M_IX86.

* rwlock.c (pthread_rwlock_destroy): Assignment changed
to avoid compiler warning.

* private.c (_pthread_get_exception_services_code): Cast
NULL return value to avoid compiler warning.

* cleanup.c (pthread_pop_cleanup): Initialise "cleanup" variable
to avoid compiler warnings.

* misc.c (_pthread_new): Change "new" variable to "t" to avoid
confusion with the C++ keyword of the same name.

* condvar.c (cond_wait_cleanup): Initialise lastWaiter variable.
(cond_timedwait): Remove unused local variables. to avoid
compiler warnings.

* dll.c (dllMain): Remove 2000-07-21 change - problem
appears to be in pthread_create().

2000-07-22 Ross Johnson <rpj@special.ise.canberra.edu.au>

* tsd.c (pthread_key_create): If a destructor was given
and the pthread_mutex_init failed, then would try to
reference a NULL pointer (*key); eliminate this section of
code by using a dynamically initialised mutex
(PTHREAD_MUTEX_INITIALIZER).

* tsd.c (pthread_setspecific): Return an error if
unable to set the value; simplify cryptic conditional.

* tsd.c (pthread_key_delete): Locking threadsLock relied
on mutex_lock returning an error if the key has no destructor.
ThreadsLock is only initialised if the key has a destructor.
Making this mutex a static could reduce the number of mutexes
used by an application since it is actually created only at
first use and it's often destroyed soon after.

2000-07-22 Ross Johnson <rpj@special.ise.canberra.edu.au>

* FAQ: Added Q5 and Q6.

tests/ChangeLog:

2000-07-25 Ross Johnson <rpj@special.ise.canberra.edu.au>

* runtest.bat: modified to work under W98.

* runall.bat: Add new tests; modified to work under W98.
It was ok under NT.

* Makefile: Add new tests.

* exception1.c: New; Test passing exceptions back to the
application and retaining library internal exceptions.

* join0.c: New; Test a single join.

2000-07-25 16:14:23 Tree
[b035ed] by rpj rpj

2000-07-25 Ross Johnson <rpj@setup1.ise.canberra.edu.au>

* dll.c (dllMain): Remove 2000-07-21 change - problem
appears to be in pthread_create().

2000-07-21 Ross Johnson <rpj@setup1.ise.canberra.edu.au>

* create.c (pthread_create): Set threadH to 0 (zero)
everywhere. Some assignments were using NULL. Maybe
it should be NULL everywhere - need to check. (I know
they are nearly always the same thing - but not by
definition.)

* dll.c: Include resource leakage work-around. This is a
partial FIXME which doesn't stop all leakage. The real
problem needs to be found and fixed.
- "David Baggett" <dmb@itasoftware.com>

* misc.c (pthread_self): Try to catch NULL thread handles
at the point where they might be generated, even though
they should always be valid at this point.

* tsd.c (pthread_setspecific): return an error value if
pthread_self() returns NULL.

* sync.c (pthread_join): return an error value if
pthread_self() returns NULL.

* signal.c (pthread_sigmask): return an error value if
pthread_self() returns NULL.

2000-07-25 11:27:23 Tree
[20aff4] by rpj rpj

Minor admin changes.

2000-02-04 06:59:26 Tree
[5cdc41] by rpj rpj

Minor changes.

2000-01-07 05:54:32 Tree
[edafc8] by rpj rpj

New cleanup handler execution tests.

2000-01-06 01:10:11 Tree
[84c70c] by rpj rpj

2000-01-06 Ross Johnson <rpj@special.ise.canberra.edu.au>

* Makefile: Remove inconsistencies in 'cl' args
- Erik Hensema <erik.hensema@group2000.nl>

2000-01-05 14:15:36 Tree
[05d85f] by rpj rpj

Update the FAQ question 4 for async cancelation.

2000-01-05 10:01:20 Tree
[b7406a] by rpj rpj

*** empty log message ***

2000-01-05 02:30:26 Tree
[a378d9] by rpj rpj

Main changes (see ChangeLog diff for details and attributions):-
- asynchronous cancellation added
- attempt to hide internal exceptions from applications
- kernel32 load/free problem fixed
- new tests
- changes only to comments in some tests

2000-01-04 10:19:28 Tree
[27d833] by rpj rpj

*** empty log message ***

1999-12-09 06:43:12 Tree
[c0d114] by rpj rpj

* pthread.h (winsock.h): Include unconditionally.
(ETIMEDOUT): Change fallback value to that defined by winsock.h.

1999-11-05 12:58:50 Tree
[7fdb90] by rpj rpj

1999-11-05 Ross Johnson <rpj@ixobrychus.canberra.edu.au>

* general: Patched for portability to WinCE. The details are
described in the file WinCE-PORT. Follow the instructions
in README.WinCE to make the appropriate changes in config.h.
- Tristan Savatier <tristan@mpegtv.com>

1999-11-04 17:18:43 Tree
[efa438] (snap-1999-11-02) by rpj rpj

*** empty log message ***

1999-11-02 07:09:04 Tree
[fd20a1] by rpj rpj

*** empty log message ***

1999-11-02 06:59:37 Tree
[588b7f] by rpj rpj

./ChangeLog:
1999-10-30 Ross Johnson <rpj@ixobrychus.canberra.edu.au>

* create.c (pthread_create): Explicitly initialise thread state to
default values.

* cancel.c (pthread_setcancelstate): Check for NULL 'oldstate'
for compatibility with Solaris pthreads;
(pthread_setcanceltype): ditto:
- Erik Hensema <erik.hensema@group2000.nl>

1999-10-23 Ross Johnson <rpj@ixobrychus.canberra.edu.au>

* pthread.h (ctime_r): Fix incorrect argument "_tm"
- Erik Hensema <erik.hensema@group2000.nl>

tests/ChangeLog:
1999-10-30 Ross Johnson <rpj@ixobrychus.canberra.edu.au>

* cancel1.c: New. Test pthread_setcancelstate and
pthread_setcanceltype functions.
* eyal1.c (waste_time): Change calculation to avoid FP exception
on Aplhas
- Rich Peters <rpeters@micro-magic.com>

1999-10-30 09:17:28 Tree
[9d592d] by rpj rpj

1999-10-21 Ross Johnson <rpj@ixobrychus.canberra.edu.au>

* pthread.h (_POSIX_THREADS): Only define it if it isn't
already defined. Projects may need to define this on
the CC command line under Win32 as it doesn't have unistd.h
- Aurelio Medina <aureliom@crt.com>

1999-10-21 02:03:47 Tree
[a6066b] (snap-1999-10-17) by rpj rpj

*** empty log message ***

1999-10-16 17:10:48 Tree
[8c2385] by rpj rpj

1999-10-17 Ross Johnson <rpj@ixobrychus.canberra.edu.au>

* rwlock.c (pthread_rwlock_destroy): Add cast to remove compile
warning.

* condvar.c (pthread_cond_broadcast): Only release semaphores
if there are waiting threads.

1999-10-15 Ross Johnson <rpj@ixobrychus.canberra.edu.au>

* condvar.c (cond_wait_cleanup): New static cleanup handler for
cond_timedwait;
(cond_timedwait): pthread_cleanup_push args changed;
canceling a thread while it's in pthread_cond_wait
will now decrement the waiters count and cleanup if it's the
last waiter.
- Lorin Hochstein <lmh@xiphos.ca> and
Peter Slacik <Peter.Slacik@tatramed.sk>;
the last waiter will now reset the CV's wasBroadcast flag
- Graham Dumpleton <Graham.Dumpleton@ra.pad.otc.telstra.com.au>.

1999-10-16 16:24:42 Tree
[cd324b] by rpj rpj

*** empty log message ***

1999-09-23 02:13:24 Tree
[42955a] (snap-1999-09-17) by rpj rpj

*** empty log message ***

1999-09-17 06:18:15 Tree
[b02ad7] by rpj rpj

*** empty log message ***

1999-09-16 15:09:30 Tree
[99bf48] by rpj rpj

Sep 16 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>

* rwlock6.c: New test.

1999-09-16 15:04:39 Tree
[f20ec5] by rpj rpj

Thu Sep 16 1999 Ross Johnson <rpj@swan.canberra.edu.au>

* rwlock.c (pthread_rwlock_destroy): Add serialisation.
(_rwlock_check_need_init): Check for detroyed rwlock.
* rwlock.c: Check return codes from _rwlock_check_need_init();
modify comments; serialise access to rwlock objects during
operations; rename rw_mutex to rw_lock.
* implement.h: Rename rw_mutex to rw_lock.
* mutex.c (pthread_mutex_destroy): Add serialisation.
(_mutex_check_need_init): Check for detroyed mutex.
* condvar.c (pthread_cond_destroy): Add serialisation.
(_cond_check_need_init): Check for detroyed condvar.
* mutex.c: Modify comments.
* condvar.c: Modify comments.

1999-09-16 13:21:21 Tree
[70597d] by rpj rpj

Add rwlock tests to tests/Makefile

1999-09-15 02:58:54 Tree
[f17d01] by rpj rpj

Sep 15 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>

* rwlock5.c: New test.

1999-09-15 01:11:56 Tree
Older >