4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-14 21:19:17 +08:00
Thomas Pfaff 2ff03dc2e0 * include/pthread.h (PTHREAD_MUTEX_NORMAL): New define.
* thread.cc: Remove errno.h include.
(pthread::precreate): Change internal mutex type to normal.
(pthread_mutex::canBeUnlocked): Implement.
(pthread_mutex::pthread_mutex): Initialize lock_counter with 0.
(pthread_mutex::Lock): Rename to _Lock. Add self parameter.
Change lock_counter logic. Update SetOwner call.
(pthread_mutex::TryLock): Rename to _TryLock. Add self parameter.
Change lock_counter logic. Update SetOwner call.
(pthread_mutex::UnLock): Rename to _UnLock. Add self parameter.
Change lock_counter logic.
(pthread_mutex::Destroy): Rename to _Destroy. Update TryLock call.
(pthread_mutex::SetOwner): Move to thread.h as inline.
(pthread_mutex::LockRecursive): Ditto.
(pthread_mutex::fixup_after_fork): Change lock_counter logic.
(__pthread_mutexattr_settype): Add PTHREAD_MUTEX_NORMAL to valid
types check.
* thread.h: Include errno.h and limits.h.
(MUTEX_LOCK_COUNTER_INITIAL): Remove.
(MUTEX_OWNER_ANONYMOUS): New define.
(pthread_mutex::canBeUnlocked): New static method.
(pthread_mutex::lock_counter): Change type to unsigned long.
(pthread_mutex::GetPthreadSelf): New method.
(pthread_mutex::Lock): Call _Lock with pthread_self pointer.
(pthread_mutex::TryLock): Call _TryLock with pthread_self pointer.
(pthread_mutex::UnLock): Call _UnLock with pthread_self pointer.
(pthread_mutex::Destroy): Call _Destroy with pthread_self pointer.
(pthread_mutex::SetOwner): Moved from thread.cc as inline.
(pthread_mutex::LockRecursive): Ditto.
(pthread_mutex::_Lock): New method.
(pthread_mutex::_TryLock): New method.
(pthread_mutex::_UnLock): New method.
(pthread_mutex::_Destroy): New method.
2003-03-18 19:39:21 +00:00
..
2001-12-20 03:03:59 +00:00
2001-10-28 23:05:49 +00:00
2001-10-28 23:05:49 +00:00
2001-10-28 23:05:49 +00:00
2002-01-01 16:49:52 +00:00
2002-09-30 15:17:44 +00:00
2003-03-09 21:51:00 +00:00
2003-03-17 19:08:11 +00:00
2003-03-09 20:31:07 +00:00
2003-03-09 20:31:07 +00:00
2003-03-09 20:31:07 +00:00
2002-12-12 03:09:38 +00:00
2001-10-28 23:05:49 +00:00
.
2002-05-04 04:30:57 +00:00
2002-08-03 23:34:01 +00:00
2002-02-11 02:25:42 +00:00
2003-03-09 21:51:00 +00:00
2002-01-13 20:03:03 +00:00
2003-03-09 20:31:07 +00:00
2002-12-14 16:59:59 +00:00
2003-03-09 20:31:07 +00:00
2003-03-09 20:31:07 +00:00
2003-03-08 03:36:39 +00:00
2003-03-08 19:22:08 +00:00
2003-03-09 20:31:07 +00:00
2003-03-09 17:13:46 +00:00
2003-03-09 20:31:07 +00:00
2003-03-09 20:31:07 +00:00
2003-03-09 21:51:00 +00:00
2003-01-22 10:43:39 +00:00
2003-03-17 19:08:11 +00:00
2002-04-04 05:28:49 +00:00
2003-03-09 20:31:07 +00:00
2003-03-17 19:08:11 +00:00
2002-03-05 18:03:32 +00:00
2003-01-15 10:21:23 +00:00
2003-03-09 21:51:00 +00:00