[asterisk-commits] mmichelson: branch mmichelson/threadpool r377804 - /team/mmichelson/threadpoo...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 11 10:36:12 CST 2012


Author: mmichelson
Date: Tue Dec 11 10:36:08 2012
New Revision: 377804

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377804
Log:
Add threadpool option version check into threadpool creation routine.


Modified:
    team/mmichelson/threadpool/main/threadpool.c

Modified: team/mmichelson/threadpool/main/threadpool.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/threadpool/main/threadpool.c?view=diff&rev=377804&r1=377803&r2=377804
==============================================================================
--- team/mmichelson/threadpool/main/threadpool.c (original)
+++ team/mmichelson/threadpool/main/threadpool.c Tue Dec 11 10:36:08 2012
@@ -810,6 +810,11 @@
 		return NULL;
 	}
 
+	if (options->version != AST_THREADPOOL_OPTIONS_VERSION) {
+		ast_log(LOG_WARNING, "Incompatible version of threadpool options in use.\n");
+		return NULL;
+	}
+
 	tps = ast_taskprocessor_create_with_listener(name, tps_listener);
 
 	if (!tps) {




More information about the asterisk-commits mailing list