[asterisk-commits] russell: trunk r299134 - /trunk/channels/chan_misdn.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 20 17:59:42 UTC 2010


Author: russell
Date: Mon Dec 20 11:59:38 2010
New Revision: 299134

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=299134
Log:
Fix chan_misdn build after sched API changes.

Modified:
    trunk/channels/chan_misdn.c

Modified: trunk/channels/chan_misdn.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_misdn.c?view=diff&rev=299134&r1=299133&r2=299134
==============================================================================
--- trunk/channels/chan_misdn.c (original)
+++ trunk/channels/chan_misdn.c Mon Dec 20 11:59:38 2010
@@ -637,7 +637,7 @@
 
 
 /*! \brief the main schedule context for stuff like l1 watcher, overlap dial, ... */
-static struct sched_context *misdn_tasks = NULL;
+static struct ast_sched_context *misdn_tasks = NULL;
 static pthread_t misdn_tasks_thread;
 
 static int *misdn_ports;
@@ -3530,7 +3530,7 @@
 
 	chan_misdn_log(4, 0, "Starting misdn_tasks thread\n");
 
-	misdn_tasks = sched_context_create();
+	misdn_tasks = ast_sched_context_create();
 	pthread_create(&misdn_tasks_thread, NULL, misdn_tasks_thread_func, &blocker);
 
 	while (sem_wait(&blocker) && --i) {
@@ -3546,7 +3546,7 @@
 			cb_log(4, 0, "Joining misdn_tasks thread\n");
 			pthread_join(misdn_tasks_thread, NULL);
 		}
-		sched_context_destroy(misdn_tasks);
+		ast_sched_context_destroy(misdn_tasks);
 	}
 }
 




More information about the asterisk-commits mailing list