Changeset 1789 for pjproject/trunk/pjlib/src/pjlib-test/ioq_unreg.c
- Timestamp:
- Feb 13, 2008 3:17:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/ioq_unreg.c
r1405 r1789 287 287 } 288 288 289 int udp_ioqueue_unreg_test(void)289 static int udp_ioqueue_unreg_test_imp(pj_bool_t allow_concur) 290 290 { 291 291 enum { LOOP = 10 }; … … 294 294 pj_ioqueue_t *ioqueue; 295 295 pj_pool_t *test_pool; 296 296 297 PJ_LOG(3,(THIS_FILE, "..testing with concurency=%d", allow_concur)); 298 297 299 test_method = UNREGISTER_IN_APP; 298 300 … … 305 307 } 306 308 309 rc = pj_ioqueue_set_default_concurrency(ioqueue, allow_concur); 310 if (rc != PJ_SUCCESS) { 311 app_perror("Error in pj_ioqueue_set_default_concurrency()", rc); 312 return -12; 313 } 307 314 308 315 PJ_LOG(3, (THIS_FILE, "...ioqueue unregister stress test 0/3 (%s)", … … 352 359 } 353 360 354 361 int udp_ioqueue_unreg_test(void) 362 { 363 int rc; 364 365 rc = udp_ioqueue_unreg_test_imp(PJ_TRUE); 366 if (rc != 0) 367 return rc; 368 369 rc = udp_ioqueue_unreg_test_imp(PJ_FALSE); 370 if (rc != 0) 371 return rc; 372 373 return 0; 374 } 355 375 356 376 #else
Note: See TracChangeset
for help on using the changeset viewer.