[asterisk-commits] russell: trunk r108929 - /trunk/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Mar 16 12:55:53 CDT 2008
Author: russell
Date: Sun Mar 16 12:55:53 2008
New Revision: 108929
URL: http://svn.digium.com/view/asterisk?view=rev&rev=108929
Log:
Remove an unnecessary thread attribute instance
Modified:
trunk/apps/app_voicemail.c
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=108929&r1=108928&r2=108929
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Sun Mar 16 12:55:53 2008
@@ -8058,8 +8058,6 @@
static void start_poll_thread(void)
{
- pthread_attr_t attr;
-
mwi_sub_sub = ast_event_subscribe(AST_EVENT_SUB, mwi_sub_event_cb, NULL,
AST_EVENT_IE_EVENTTYPE, AST_EVENT_IE_PLTYPE_UINT, AST_EVENT_MWI,
AST_EVENT_IE_END);
@@ -8073,9 +8071,7 @@
poll_thread_run = 1;
- pthread_attr_init(&attr);
- ast_pthread_create(&poll_thread, &attr, mb_poll_thread, NULL);
- pthread_attr_destroy(&attr);
+ ast_pthread_create(&poll_thread, NULL, mb_poll_thread, NULL);
}
static void stop_poll_thread(void)
More information about the asterisk-commits
mailing list