Changeset 351 for pjproject/trunk/pjlib/src/pjlib-test/thread.c
- Timestamp:
- Mar 22, 2006 7:08:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/thread.c
r65 r351 126 126 } 127 127 128 pj_thread_sleep(500); 129 128 130 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 129 138 rc = pj_thread_resume(thread); 130 139 if (rc != PJ_SUCCESS) { … … 136 145 PJ_LOG(3,(THIS_FILE, "..waiting for thread to quit..")); 137 146 147 pj_thread_sleep(500); 148 138 149 quit_flag = 1; 139 150 pj_thread_join(thread); … … 141 152 pj_pool_release(pool); 142 153 154 if (counter == 0) { 155 PJ_LOG(3,(THIS_FILE, "...error: thread is not running")); 156 return -1025; 157 } 158 143 159 PJ_LOG(3,(THIS_FILE, "...%s success", title)); 144 160 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.