[asterisk-bugs] [Asterisk 0011279]: [patch] trunk: rwlock tracking support (tracking and untracking static rwlock)

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Nov 17 07:38:07 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11279 
====================================================================== 
Reported By:                ys
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11279
Category:                   Core-General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 89376 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-17-2007 06:49 CST
Last Modified:              11-17-2007 07:38 CST
====================================================================== 
Summary:                    [patch] trunk: rwlock tracking support (tracking and
untracking static rwlock)
Description: 

This patch based on mutex DEBUG_THREAD code.
Can be used to detect rwlock error and deadlock.

Second: make threadstorage rwlock untracked.
http://bugs.digium.com/view.php?id=0011207

====================================================================== 

---------------------------------------------------------------------- 
 ys - 11-17-07 07:38  
---------------------------------------------------------------------- 
strange?

1. I extend ast_mutex_info:
	union {
+		pthread_mutex_t mutex;
+		pthread_rwlock_t rwlock;
+	};
and rename to ast_mutex_lock_info.

2. ast_mutex_lock_info used in typedef for ast_mutex_t:
+typedef struct ast_mutex_lock_info ast_mutex_t;
and ast_rwlock_t:
+typedef struct ast_mutex_lock_info ast_rwlock_t;

if DEBUG_THREAD is enabled. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-17-07 07:38  ys             Note Added: 0073842                          
======================================================================




More information about the asterisk-bugs mailing list