[Asterisk-cvs] asterisk/include/asterisk agi.h,1.1,1.2 lock.h,1.22,1.23 utils.h,1.6,1.7
markster at lists.digium.com
markster at lists.digium.com
Sun Aug 8 13:29:03 CDT 2004
- Previous message: [Asterisk-cvs] asterisk/apps app_qcall.c,1.12,1.13 app_rpt.c,1.17,1.18
- Next message: [Asterisk-cvs] asterisk/pbx pbx_gtkconsole.c,1.14,1.15 pbx_spool.c,1.15,1.16 pbx_wilcalu.c,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/include/asterisk
In directory localhost.localdomain:/tmp/cvs-serv18773/include/asterisk
Modified Files:
agi.h lock.h utils.h
Log Message:
Merge BSD stack size work (bug #2067)
Index: agi.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/agi.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- agi.h 17 Jul 2004 20:12:28 -0000 1.1
+++ agi.h 8 Aug 2004 17:15:02 -0000 1.2
@@ -37,7 +37,8 @@
struct agi_command *next;
} agi_command;
-
+int agi_register(agi_command *cmd);
+void agi_unregister(agi_command *cmd);
#if defined(__cplusplus) || defined(c_plusplus)
}
Index: lock.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/lock.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- lock.h 22 Jun 2004 19:53:36 -0000 1.22
+++ lock.h 8 Aug 2004 17:15:02 -0000 1.23
@@ -357,5 +357,6 @@
#define AST_MUTEX_INITIALIZER __use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__
#define gethostbyname __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__
+#define pthread_create __use_ast_pthread_create_instead__
#endif
Index: utils.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/utils.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- utils.h 29 Jun 2004 17:54:25 -0000 1.6
+++ utils.h 8 Aug 2004 17:15:02 -0000 1.7
@@ -12,7 +12,9 @@
#ifndef _ASTERISK_UTIL_H
#define _ASTERISK_UTIL_H
+#include <netinet/in.h>
#include <netdb.h>
+#include <pthread.h>
static inline int ast_strlen_zero(const char *s)
{
@@ -37,4 +39,14 @@
#endif
#define inet_ntoa __dont__use__inet_ntoa__use__ast_inet_ntoa__instead__
+#ifdef LINUX
+#define ast_pthread_create pthread_create
+#else
+/* Linux threads have a default 2MB stack size. */
+#ifndef PTHREAD_ATTR_STACKSIZE
+#define PTHREAD_ATTR_STACKSIZE 2097152
+#endif /* PTHREAD_ATTR_STACKSIZE */
+extern int ast_pthread_create(pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *data);
+#endif /* LINUX */
+
#endif
- Previous message: [Asterisk-cvs] asterisk/apps app_qcall.c,1.12,1.13 app_rpt.c,1.17,1.18
- Next message: [Asterisk-cvs] asterisk/pbx pbx_gtkconsole.c,1.14,1.15 pbx_spool.c,1.15,1.16 pbx_wilcalu.c,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list