comparison extensions/test_netemul/tne_process.c @ 1192:6a1042d8075b

Replace FDEV_TERMINATE events with calls to fd_core_shutdown to handle the core state properly
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 10 Jun 2013 16:44:18 +0800
parents 1af09cc156d6
children
comparison
equal deleted inserted replaced
1191:50bf33dc8fe0 1192:6a1042d8075b
278 pthread_cleanup_pop( 0 ); 278 pthread_cleanup_pop( 0 );
279 CHECK_POSIX_DO( pthread_mutex_unlock(&mtx), ); 279 CHECK_POSIX_DO( pthread_mutex_unlock(&mtx), );
280 error: 280 error:
281 TRACE_DEBUG(INFO, "A fatal error occurred in test_netemul/process thread!"); 281 TRACE_DEBUG(INFO, "A fatal error occurred in test_netemul/process thread!");
282 ASSERT(0); 282 ASSERT(0);
283 CHECK_FCT_DO(fd_event_send(fd_g_config->cnf_main_ev, FDEV_TERMINATE, 0, NULL), ); 283 CHECK_FCT_DO(fd_core_shutdown(), );
284 return NULL; 284 return NULL;
285 } 285 }
286 286
287 /******************************************************************/ 287 /******************************************************************/
288 /* functions visible from outside this file */ 288 /* functions visible from outside this file */
"Welcome to our mercurial repository"