[svn-commits] russell: branch russell/debug_threads r77874 - /team/russell/debug_threads/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Aug 1 13:36:48 CDT 2007


Author: russell
Date: Wed Aug  1 13:36:48 2007
New Revision: 77874

URL: http://svn.digium.com/view/asterisk?view=rev&rev=77874
Log:
Remove silly code that I added for verifying the CLI command output

Modified:
    team/russell/debug_threads/utils.c

Modified: team/russell/debug_threads/utils.c
URL: http://svn.digium.com/view/asterisk/team/russell/debug_threads/utils.c?view=diff&rev=77874&r1=77873&r2=77874
==============================================================================
--- team/russell/debug_threads/utils.c (original)
+++ team/russell/debug_threads/utils.c Wed Aug  1 13:36:48 2007
@@ -1229,37 +1229,13 @@
         return ret;
 }
 
-static void *lock_test1(void *data)
-{
-	ast_mutex_lock(&lock1);
-	usleep(3000000);
-	ast_mutex_lock(&lock2);
-
-	return NULL;
-}
-
-static void *lock_test2(void *data)
-{
-	ast_mutex_lock(&lock2);
-	usleep(3000000);
-	ast_mutex_lock(&lock1);
-
-	return NULL;
-}
-
 int ast_utils_init(void)
 {
-	pthread_t blah;
-
 	base64_init();
 #ifdef DEBUG_THREADS
 	ast_cli_register_multiple(utils_cli, sizeof(utils_cli) / sizeof(utils_cli[0]));
 #endif
 
-	
-	ast_pthread_create(&blah, NULL, lock_test1, NULL);
-	ast_pthread_create(&blah, NULL, lock_test2, NULL);
-
 	return 0;
 }
 




More information about the svn-commits mailing list