summaryrefslogtreecommitdiff
path: root/implement.h
AgeCommit message (Collapse)Author
2011-03-26New interface (not part of robust mutexes)rpj
2011-03-25Robust mutex streamliningrpj
2011-03-25Terminating thread robust signaling changesrpj
2011-03-24First pass of robust mutexesrpj
2011-03-12Use C ++/-- operatorsrpj
2011-03-10Replace global Critical Sections with MCS Queue locksrpj
2011-03-09*** empty log message ***rpj
2011-03-07Fix C++ exception throw warningsrpj
2011-03-07exception handling and c++ castsrpj
2011-03-0664 bit compatibility (mingw64)rpj
2011-03-04Function name changerpj
2011-03-03Some cleanups, mostly x86_64 compat plus interlocked macrosrpj
2010-06-20See ChangeLogs: preparing for new release.rpj
2010-02-15Comments and code style changesrpj
2007-01-06See ChangeLogrpj
2007-01-05Added more Win64 supportrpj
2005-06-03''rpj
2005-05-27''rpj
2005-05-08''rpj
2005-05-06''rpj
2005-04-28''rpj
2005-04-26''rpj
2005-04-25''rpj
2005-04-25Fix NEED_SEM code (WinCE)rpj
2005-04-01''rpj
2005-03-12New design for pthread_once (with cancelability); ABI changerpj
2005-03-08compiler compatibility and bug fixesrpj
2005-01-01Copyright year updatedrpj
2004-11-22Copyright updaterpj
2004-11-03Mutex, semaphore, thread ID, test suite changes - see ChangeLogsrpj
2004-10-22Changes to mutexes and semaphores - considered alpha for nowrpj
2004-10-19Semaphore speedups - alpha, but passes testsuiterpj
2004-10-16Mutex speedups cont'drpj
2004-10-08Mutex speedupsrpj
2004-10-01Mutex speedupsrpj
2004-09-13Clarify behaviour and remove some redundant code - see ChangeLogsrpj
2004-06-22Add PTHREAD_{RECURSIVE,ERRORCHECK}_MUTEX_INITIALIZER{,_NP}snap-2004-06-22rpj
2004-05-28''rpj
2004-05-17''rpj
2004-05-17''rpj
2004-05-17re-indentation, bug fixes, hooks for pre-emptive async cancelationrpj
2003-10-15Add Watcom compiler compatibility.rpj
2003-09-18Cleanup and fixes to thread priority management. Other minor changes.snap-2003-09-18rpj
2003-08-19Updated Copyright notice (date and contact address).rpj
2003-08-14Reuse of thread IDs, improved thread ID validation, new tests, bug fixes.rpj
2002-02-20implement.h: Refine use of _LPLONG and _LONG.rpj
pthread_cond_init.c: Whitespace.
2002-02-18Major reorganisation of source code; new routine and tests added.rpj
2002-02-08Copyright notice updates; module splitting; POSIX versionrpj
conditional compilation; refinements; bug fixes. See the ChangeLog.
2002-01-312002-01-27 Ross Johnson <rpj@special.ise.canberra.edu.au>rpj
* mutex.c (pthread_mutex_timedlock): New function suggested by Alexander Terekhov. The logic required to implement this properly came from Alexander, with some collaboration with Thomas Pfaff. (pthread_mutex_unlock): Wrap the waiters check and sema post in a critical section to prevent a race with pthread_mutex_timedlock. (ptw32_timed_semwait): New function; returns a special result if the absolute timeout parameter represents a time already passed when called; used by pthread_mutex_timedwait(). Have deliberately not reused the name "ptw32_sem_timedwait" because they are not the same routine. * condvar.c (ptw32_cond_timedwait): Use the new sem_timedwait() instead of ptw32_sem_timedwait(), which now has a different function. See previous. * implement.h: Remove prototype for ptw32_sem_timedwait. See next. (pthread_mutex_t_): Add critical section element for access to lock_idx during mutex post-timeout processing. * semaphore.h (sem_timedwait): See next. * semaphore.c (sem_timedwait): See next. * private.c (ptw32_sem_timedwait): Move to semaphore.c and rename as sem_timedwait(). 2002-01-18 Ross Johnson <rpj@special.ise.canberra.edu.au> * sync.c (pthread_join): Was getting the exit code from the calling thread rather than the joined thread if defined(__MINGW32__) && !defined(__MSVCRT__). 2002-01-15 Ross Johnson <rpj@special.ise.canberra.edu.au> * pthread.h: Unless the build explicitly defines __CLEANUP_SEH, __CLEANUP_CXX, or __CLEANUP_C, then the build defaults to __CLEANUP_C style cleanup. This style uses setjmp/longjmp in the cancelation and thread exit implementations and therefore won't do stack unwinding if linked to applications that have it (e.g. C++ apps). This is currently consistent with most/all commercial Unix POSIX threads implementations. * spin.c (pthread_spin_init): Edit renamed function call. * nonportable.c (pthread_num_processors_np): New. (pthread_getprocessors_np): Renamed to ptw32_getprocessors and moved to private.c. * private.c (pthread_getprocessors): Moved here from nonportable.c. * pthread.def (pthread_getprocessors_np): Removed from export list. * rwlock.c (pthread_rwlockattr_init): New. (pthread_rwlockattr_destroy): New. (pthread_rwlockattr_getpshared): New. (pthread_rwlockattr_setpshared): New.
2002-01-08 * mutex.c (pthread_mutex_trylock): userpj
ptw32_interlocked_compare_exchange function pointer rather than ptw32_InterlockedCompareExchange() directly to retain portability to non-iX86 processors, e.g. WinCE etc. The pointer will point to the native OS version of InterlockedCompareExchange() if the OS supports it (see ChangeLog entry of 2001-10-17).