[asterisk-commits] dlee: branch dlee/performance r399397 - /team/dlee/performance/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 18 13:19:39 CDT 2013


Author: dlee
Date: Wed Sep 18 13:19:36 2013
New Revision: 399397

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399397
Log:
routes don't need a lock

Modified:
    team/dlee/performance/main/stasis_message_router.c

Modified: team/dlee/performance/main/stasis_message_router.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/performance/main/stasis_message_router.c?view=diff&rev=399397&r1=399396&r2=399397
==============================================================================
--- team/dlee/performance/main/stasis_message_router.c (original)
+++ team/dlee/performance/main/stasis_message_router.c Wed Sep 18 13:19:36 2013
@@ -167,14 +167,14 @@
 		return NULL;
 	}
 
-	router->routes = ao2_container_alloc(ROUTE_TABLE_BUCKETS, route_hash,
+	router->routes = ao2_container_alloc_hash(AO2_ALLOC_OPT_LOCK_NOLOCK, 0, ROUTE_TABLE_BUCKETS, route_hash, NULL,
 		route_cmp);
 	if (!router->routes) {
 		return NULL;
 	}
 
-	router->cache_routes = ao2_container_alloc(ROUTE_TABLE_BUCKETS,
-		route_hash, route_cmp);
+	router->cache_routes = ao2_container_alloc_hash(AO2_ALLOC_OPT_LOCK_NOLOCK, 0, ROUTE_TABLE_BUCKETS,
+		route_hash, NULL, route_cmp);
 	if (!router->cache_routes) {
 		return NULL;
 	}




More information about the asterisk-commits mailing list