[asterisk-commits] russell: branch 1.2 r38547 -
/branches/1.2/frame.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Jul 30 21:06:17 MST 2006
Author: russell
Date: Sun Jul 30 23:06:16 2006
New Revision: 38547
URL: http://svn.digium.com/view/asterisk?rev=38547&view=rev
Log:
one more small tweak for thread-safety of TRACE_FRAMES
Modified:
branches/1.2/frame.c
Modified: branches/1.2/frame.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/frame.c?rev=38547&r1=38546&r2=38547&view=diff
==============================================================================
--- branches/1.2/frame.c (original)
+++ branches/1.2/frame.c Sun Jul 30 23:06:16 2006
@@ -835,11 +835,11 @@
int x=1;
if (argc != 3)
return RESULT_SHOWUSAGE;
+ ast_mutex_lock(&framelock);
ast_cli(fd, " Framer Statistics \n");
ast_cli(fd, "---------------------------\n");
ast_cli(fd, "Total allocated headers: %d\n", headers);
ast_cli(fd, "Queue Dump:\n");
- ast_mutex_lock(&framelock);
for (f=headerlist; f; f = f->next) {
ast_cli(fd, "%d. Type %d, subclass %d from %s\n", x++, f->frametype, f->subclass, f->src ? f->src : "<Unknown>");
}
More information about the asterisk-commits
mailing list