[asterisk-bugs] [Asterisk 0014930]: [patch] Detect pthread_rwlock_timedwrlock() before usage

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 22 16:43:27 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14930 
====================================================================== 
Reported By:                tilghman
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   14930
Category:                   Core/ManagerInterface
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 189137 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-04-18 09:11 CDT
Last Modified:              2009-04-22 16:43 CDT
====================================================================== 
Summary:                    [patch] Detect pthread_rwlock_timedwrlock() before
usage
Description: 
On Saturday 18 April 2009 05:48:40 Michiel van Baak wrote:
> Tilghman recently committed a fix for bug 14705.
> This patch uses pthread_rwlock_timed[(wr)|(rd)]lock
>
> Those functions are not available on OpenBSD.
> Now we have no version of asterisk that compiles anymore.
>
> Any idea how to fix this other then reverting this one revision (which
> makes asterisk compile fine again on OpenBSD)

Possibly.  We could do a detection for this function in autoconf and
implement
a poor man's busy-loop using pthread_rwlock_trywrlock, assuming you have
that
function.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0014933 SVN Trunk fails to link on Mac OS X
====================================================================== 

---------------------------------------------------------------------- 
 (0103664) svnbot (reporter) - 2009-04-22 16:43
 http://bugs.digium.com/view.php?id=14930#c103664 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 190096

_U  branches/1.6.2/
U   branches/1.6.2/configure
U   branches/1.6.2/configure.ac
U   branches/1.6.2/include/asterisk/autoconfig.h.in
U   branches/1.6.2/include/asterisk/lock.h

------------------------------------------------------------------------
r190096 | tilghman | 2009-04-22 16:43:26 -0500 (Wed, 22 Apr 2009) | 21
lines

Merged revisions 190093 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r190093 | tilghman | 2009-04-22 16:38:15 -0500 (Wed, 22 Apr 2009) | 14
lines
  
  Merged revisions 190092 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r190092 | tilghman | 2009-04-22 16:35:03 -0500 (Wed, 22 Apr 2009) | 7
lines
    
    Detect availability of pthread_rwlock_timedwrlock() before using it.
    (closes issue http://bugs.digium.com/view.php?id=14930)
     Reported by: tilghman
     Patches: 
           20090420__bug14930.diff.txt uploaded by tilghman (license 14)
     Tested by: mvanbaak, tilghman
  ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=190096 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-22 16:43 svnbot         Checkin                                      
2009-04-22 16:43 svnbot         Note Added: 0103664                          
======================================================================




More information about the asterisk-bugs mailing list