Ignore:
Timestamp:
Mar 22, 2006 7:08:19 PM (18 years ago)
Author:
bennylp
Message:

Added a little more threading test and put more info in ioqueue test log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/thread.c

    r65 r351  
    126126    } 
    127127 
     128    pj_thread_sleep(500); 
     129 
    128130    if (flags & PJ_THREAD_SUSPENDED) { 
     131 
     132        /* Check that counter is still zero */ 
     133        if (counter != 0) { 
     134            PJ_LOG(3,(THIS_FILE, "...error: thread is not suspended")); 
     135            return -1015; 
     136        } 
     137         
    129138        rc = pj_thread_resume(thread); 
    130139        if (rc != PJ_SUCCESS) { 
     
    136145    PJ_LOG(3,(THIS_FILE, "..waiting for thread to quit..")); 
    137146 
     147    pj_thread_sleep(500); 
     148 
    138149    quit_flag = 1; 
    139150    pj_thread_join(thread); 
     
    141152    pj_pool_release(pool); 
    142153 
     154    if (counter == 0) { 
     155        PJ_LOG(3,(THIS_FILE, "...error: thread is not running")); 
     156        return -1025; 
     157    } 
     158     
    143159    PJ_LOG(3,(THIS_FILE, "...%s success", title)); 
    144160    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.