Lines Matching defs:cnt
88 PRInt32 rv, cnt, sum;
151 for(cnt = 0; cnt < thread_cnt; cnt++) {
154 thread_args[cnt].list1 = list1;
155 thread_args[cnt].list2 = list2;
156 thread_args[cnt].loops = loops;
157 thread_args[cnt].data_cnt = data_cnt;
158 thread_args[cnt].initial_data_value = 1 + cnt * data_cnt;
160 if (cnt & 1)
166 threads[cnt] = PR_CreateThread(PR_USER_THREAD,
167 stackop, &thread_args[cnt],
172 if (threads[cnt] == NULL) {
179 threads[cnt]);
182 for(cnt = 0; cnt < thread_cnt; cnt++) {
183 rc = PR_JoinThread(threads[cnt]);
197 cnt = data_cnt * thread_cnt;
199 while (cnt-- > 0) {
202 * There should be at least 'cnt' number of records
213 * there should be exactly 'cnt' number of records
241 PRInt32 val, cnt, index, loops;
248 cnt = arg->data_cnt;
256 Items = (DataRecord *) PR_CALLOC(sizeof(DataRecord) * cnt);
262 "Thread[0x%x] init_val = %d cnt = %d data1 = 0x%x datan = 0x%x\n",
263 PR_GetCurrentThread(), val, cnt, &Items[0], &Items[cnt-1]);
269 while (cnt-- > 0) {
280 cnt = arg->data_cnt;
281 while (cnt-- > 0) {
294 cnt = arg->data_cnt;
295 while (cnt-- > 0) {
306 "Thread[0x%x] init_val = %d cnt = %d exiting\n",
307 PR_GetCurrentThread(), val, cnt);