[svn-commits] russell: branch group/newcdr r202111 - /team/group/newcdr/cel/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Jun 20 09:11:24 CDT 2009


Author: russell
Date: Sat Jun 20 09:11:20 2009
New Revision: 202111

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202111
Log:
Remove useless usleep() from module unload callbacks

Modified:
    team/group/newcdr/cel/cel_adaptive_odbc.c
    team/group/newcdr/cel/cel_pgsql.c

Modified: team/group/newcdr/cel/cel_adaptive_odbc.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/cel/cel_adaptive_odbc.c?view=diff&rev=202111&r1=202110&r2=202111
==============================================================================
--- team/group/newcdr/cel/cel_adaptive_odbc.c (original)
+++ team/group/newcdr/cel/cel_adaptive_odbc.c Sat Jun 20 09:11:20 2009
@@ -721,7 +721,6 @@
 	if (event_sub) {
 		event_sub = ast_event_unsubscribe(event_sub);
 	}
-	usleep(1);
 	if (AST_RWLIST_WRLOCK(&odbc_tables)) {
 		event_sub = ast_event_subscribe(AST_EVENT_CEL, odbc_log, "Adaptive ODBC CEL backend", NULL, AST_EVENT_IE_END);
 		if (!event_sub) {

Modified: team/group/newcdr/cel/cel_pgsql.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/cel/cel_pgsql.c?view=diff&rev=202111&r1=202110&r2=202111
==============================================================================
--- team/group/newcdr/cel/cel_pgsql.c (original)
+++ team/group/newcdr/cel/cel_pgsql.c Sat Jun 20 09:11:20 2009
@@ -341,8 +341,6 @@
 static int my_unload_module(void)
 {
 	struct columns *current;
-	/* Give all threads time to finish */
-	usleep(1);
 	if (event_sub) {
 		event_sub = ast_event_unsubscribe(event_sub);
 	}




More information about the svn-commits mailing list