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
..
2003-03-18 19:39:21 +00:00
2003-03-03 04:30:09 +00:00
2002-01-17 10:39:37 +00:00
2002-09-30 02:51:22 +00:00
2001-12-20 03:03:59 +00:00
2002-09-19 15:12:48 +00:00
2003-03-13 22:53:16 +00:00
2003-03-18 19:39:21 +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
2003-01-10 12:32:49 +00:00
2003-01-25 10:36:46 +00:00
2001-12-20 02:55:11 +00:00
2003-01-24 03:53:46 +00:00
2002-12-04 20:36:23 +00:00
2001-10-22 21:09:41 +00:00
2003-01-18 03:26:07 +00:00
2003-01-17 05:18:30 +00:00
2002-08-27 04:10:54 +00:00
2003-02-22 23:02:15 +00:00
2002-09-22 12:04:15 +00:00
2002-09-22 12:04:15 +00:00
2002-09-22 12:04:15 +00:00
2002-09-30 15:17:44 +00:00
2003-03-09 21:51:00 +00:00
2002-09-30 18:31:56 +00:00
2002-09-22 12:04:15 +00:00
2002-09-22 12:04:15 +00:00
2002-09-22 12:04:15 +00:00
2003-02-27 15:09:31 +00:00
2002-12-14 04:01:32 +00:00
2003-03-17 19:08:11 +00:00
2002-06-23 18:55:23 +00:00
2003-03-01 02:02:42 +00:00
2002-10-21 01:00:58 +00:00
2002-08-06 03:40:40 +00:00
2002-09-23 00:31:31 +00:00
2003-02-13 15:15:32 +00:00
2002-09-23 00:31:31 +00:00
2003-02-01 05:00:15 +00:00
2003-03-02 18:37:17 +00:00
2002-11-14 04:29:39 +00:00
2003-03-02 18:37:17 +00:00
2003-03-02 18:37:17 +00:00
2003-02-13 15:15:32 +00:00
2002-06-29 02:36:08 +00:00
2002-09-24 14:17:50 +00:00
2003-02-14 02:52:29 +00:00
2002-10-21 01:00:58 +00:00
2003-03-08 17:56:13 +00:00
2003-03-09 20:10:25 +00:00
2002-12-14 04:01:32 +00:00
2003-03-17 19:08:11 +00:00
2003-03-09 20:31:07 +00:00
2003-01-15 10:21:23 +00:00
2003-01-26 06:42:40 +00:00
2003-02-04 03:01:17 +00:00
2003-03-18 09:30:03 +00:00
2003-03-08 17:56:13 +00:00
2002-12-14 04:01:32 +00:00
2002-12-14 04:01:32 +00:00
2003-02-04 03:01:17 +00:00
2003-03-09 20:31:07 +00:00
2003-03-11 16:49:58 +00:00
2002-09-30 04:35:18 +00:00
2003-02-13 02:52:41 +00:00
2003-03-13 08:18:15 +00:00
2003-03-09 20:31:07 +00:00
2003-02-04 03:01:17 +00:00
2002-12-14 04:01:32 +00:00
2003-02-21 04:33:53 +00:00
2003-03-08 16:44:25 +00:00
2002-10-22 20:16:31 +00:00
2003-03-17 20:44:10 +00:00
2002-05-24 14:24:33 +00:00
2003-02-18 10:09:37 +00:00
2003-02-07 04:13:41 +00:00
2002-10-22 16:18:55 +00:00
2002-09-30 02:51:22 +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
2002-07-13 21:15:10 +00:00
2002-11-24 13:54:14 +00:00
2002-11-14 02:15:23 +00:00
2002-09-23 00:31:31 +00:00
2002-12-20 03:40:00 +00:00
2003-03-09 21:51:00 +00:00
2003-02-22 23:02:15 +00:00
2003-02-08 17:03:34 +00:00
2003-01-10 12:32:49 +00:00
2002-01-13 20:03:03 +00:00
2003-03-09 20:31:07 +00:00
2002-09-22 12:04:15 +00:00
2003-03-13 11:31:24 +00:00
2002-12-14 16:59:59 +00:00
2001-12-20 02:55:11 +00:00
2003-03-09 20:31:07 +00:00
2003-03-09 20:10:25 +00:00
2003-02-06 14:01:54 +00:00
2003-03-09 20:31:07 +00:00
2003-03-08 03:36:39 +00:00
2003-02-04 03:01:17 +00:00
2003-03-08 19:22:08 +00:00
2003-03-08 17:56:13 +00:00
2003-02-07 06:15:10 +00:00
2003-03-09 20:10:25 +00:00
2002-12-09 22:49:12 +00:00
2003-01-10 12:32:49 +00:00
2003-03-09 20:31:07 +00:00
2002-06-05 04:01:43 +00:00
2002-10-07 20:06:16 +00:00
2003-03-09 17:13:46 +00:00
2002-09-22 12:04:15 +00:00
2002-11-13 19:36:12 +00:00
2003-03-10 16:25:48 +00:00
2003-03-09 20:31:07 +00:00
2003-03-10 16:25:48 +00:00
2003-03-09 20:31:07 +00:00
2003-03-09 20:10:25 +00:00
2002-09-22 12:04:15 +00:00
2002-10-22 16:18:55 +00:00
2003-01-31 15:02:40 +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-11-22 04:43:47 +00:00
2002-06-13 17:28:11 +00:00
2003-02-13 02:52:41 +00:00
2002-01-24 21:39:09 +00:00
2002-04-04 05:28:49 +00:00
2003-02-04 03:01:17 +00:00
2003-03-09 20:31:07 +00:00
2003-03-09 20:10:25 +00:00
2002-06-05 04:01:43 +00:00
2002-08-16 19:41:39 +00:00
2003-03-17 19:08:11 +00:00
2003-01-10 12:32:49 +00:00
2003-03-09 20:10:25 +00:00
2003-02-01 04:48:03 +00:00
2003-03-18 19:39:21 +00:00
2003-03-18 19:39:21 +00:00
2002-09-22 12:04:15 +00:00
2002-09-22 12:04:15 +00:00
2002-10-21 01:00:58 +00:00
2003-03-09 20:10:25 +00:00
2002-03-05 18:03:32 +00:00
2003-02-27 17:41:15 +00:00
2003-01-15 10:21:23 +00:00
2003-03-09 20:10:25 +00:00
2002-12-14 05:06:59 +00:00
2003-02-20 15:58:55 +00:00
2003-02-20 15:58:55 +00:00
2003-01-10 12:32:49 +00:00
2003-03-09 21:51:00 +00:00
2003-03-09 22:13:06 +00:00
2002-09-22 12:04:15 +00:00
2002-02-09 10:40:48 +00:00