[asterisk-bugs] [Asterisk 0012541]: [patch] Janitor for getvar_helper threadsafe
noreply at bugs.digium.com
noreply at bugs.digium.com
Mon Apr 28 10:41:13 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=12541
======================================================================
Reported By: snuffy
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 12541
Category: General
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!): 114714
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 04-28-2008 10:01 CDT
Last Modified: 04-28-2008 10:41 CDT
======================================================================
Summary: [patch] Janitor for getvar_helper threadsafe
Description:
I've done a few patches following the code outlined in the
janitor-projects.txt document.
Most apps have been done aside from app_dial at the moment.
All still compiled/ran after change no other testing has taken place.
Note for some multiple get of vars i hold lock for the 3 or so variables
then unlock.
======================================================================
----------------------------------------------------------------------
Corydon76 - 04-28-08 10:41
----------------------------------------------------------------------
I see a basic problem with at least one of these patches, in that you are
duplicating a variable that will be immediately scanned into an integer.
Why not simply delay the unlock until after the scan?
Also, you're missing a space between your control structure and your
opening parenthesis for the conditional: "if (" not "if(".
Issue History
Date Modified Username Field Change
======================================================================
04-28-08 10:41 Corydon76 Note Added: 0086099
======================================================================
More information about the asterisk-bugs
mailing list