[Asterisk-cvs] asterisk/apps app_qcall.c,1.12,1.13 app_rpt.c,1.17,1.18
markster at lists.digium.com
markster at lists.digium.com
Sun Aug 8 13:29:02 CDT 2004
- Previous message: [Asterisk-cvs] asterisk asterisk.c,1.114,1.115 autoservice.c,1.6,1.7 manager.c,1.66,1.67 pbx.c,1.143,1.144 utils.c,1.15,1.16
- Next message: [Asterisk-cvs] asterisk/include/asterisk agi.h,1.1,1.2 lock.h,1.22,1.23 utils.h,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/apps
In directory localhost.localdomain:/tmp/cvs-serv18773/apps
Modified Files:
app_qcall.c app_rpt.c
Log Message:
Merge BSD stack size work (bug #2067)
Index: app_qcall.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_qcall.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- app_qcall.c 14 Jul 2004 07:34:34 -0000 1.12
+++ app_qcall.c 8 Aug 2004 17:15:02 -0000 1.13
@@ -51,6 +51,7 @@
*/
#include <asterisk/lock.h>
+#include <asterisk/utils.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
@@ -156,7 +157,7 @@
arg = (void *) strdup(fname);
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
- if (pthread_create(&dialer_thread,&attr,qcall_do,arg) == -1)
+ if (ast_pthread_create(&dialer_thread,&attr,qcall_do,arg) == -1)
{
perror("qcall: Cannot create thread");
continue;
@@ -371,7 +372,7 @@
{
snprintf(qdir, sizeof(qdir), "%s/%s", ast_config_AST_SPOOL_DIR, "qcall");
mkdir(qdir,0760);
- pthread_create(&qcall_thread,NULL,qcall,NULL);
+ ast_pthread_create(&qcall_thread,NULL,qcall,NULL);
return 0;
}
Index: app_rpt.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_rpt.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- app_rpt.c 14 Jul 2004 07:34:34 -0000 1.17
+++ app_rpt.c 8 Aug 2004 17:15:02 -0000 1.18
@@ -103,6 +103,7 @@
enum {DC_INDETERMINATE, DC_REQ_FLUSH, DC_ERROR, DC_COMPLETE};
enum {SOURCE_RPT, SOURCE_LNK, SOURCE_RMT};
+#include <asterisk/utils.h>
#include <asterisk/lock.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
@@ -1055,7 +1056,7 @@
ast_mutex_unlock(&myrpt->lock);
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
- pthread_create(&tele->threadid,&attr,rpt_tele_thread,(void *) tele);
+ ast_pthread_create(&tele->threadid,&attr,rpt_tele_thread,(void *) tele);
return;
}
@@ -1615,7 +1616,7 @@
ast_mutex_unlock(&myrpt->lock);
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
- pthread_create(&myrpt->rpt_call_thread,&attr,rpt_call,(void *) myrpt);
+ ast_pthread_create(&myrpt->rpt_call_thread,&attr,rpt_call,(void *) myrpt);
return DC_COMPLETE;
}
@@ -3135,7 +3136,7 @@
myrpt->exten[myrpt->cidx] = 0;
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
- pthread_create(&myrpt->rpt_call_thread,&attr,rpt_call,(void *)myrpt);
+ ast_pthread_create(&myrpt->rpt_call_thread,&attr,rpt_call,(void *)myrpt);
continue;
}
}
@@ -3539,7 +3540,7 @@
ast_log(LOG_WARNING,"Did not specify ident for node %s\n",rpt_vars[i].name);
pthread_exit(NULL);
}
- pthread_create(&rpt_vars[i].rpt_thread,NULL,rpt,(void *) &rpt_vars[i]);
+ ast_pthread_create(&rpt_vars[i].rpt_thread,NULL,rpt,(void *) &rpt_vars[i]);
}
/* wait for first one to die (should be never) */
pthread_join(rpt_vars[0].rpt_thread,NULL);
@@ -3920,7 +3921,7 @@
int load_module(void)
{
- pthread_create(&rpt_master_thread,NULL,rpt_master,NULL);
+ ast_pthread_create(&rpt_master_thread,NULL,rpt_master,NULL);
return ast_register_application(app, rpt_exec, synopsis, descrip);
}
- Previous message: [Asterisk-cvs] asterisk asterisk.c,1.114,1.115 autoservice.c,1.6,1.7 manager.c,1.66,1.67 pbx.c,1.143,1.144 utils.c,1.15,1.16
- Next message: [Asterisk-cvs] asterisk/include/asterisk agi.h,1.1,1.2 lock.h,1.22,1.23 utils.h,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list