Lines Matching defs:shared
86 static Shared *shared = NULL;
106 Shared *shared = (Shared*)arg;
108 PRNetAddr *server_address = &shared->server_address;
153 PR_Lock(shared->ml);
155 shared->sampled += bytes;
156 interval = now - shared->timein;
159 sampled = shared->sampled;
160 shared->timein = now;
161 shared->sampled = 0;
164 PR_Unlock(shared->ml);
169 PR_fprintf(err, "%u streams @ %u Kbytes/sec\n", shared->threads, rate);
189 0, &host, PORT_NUMBER, &shared->server_address) < 0)
195 shared->threads += 1;
197 PR_USER_THREAD, Clientel, shared,
200 if (shared->threads == initial_streams)
240 PR_Lock(shared->ml);
242 shared->sampled += bytes;
243 interval = now - shared->timein;
246 sampled = shared->sampled;
247 shared->timein = now;
248 shared->sampled = 0;
251 PR_Unlock(shared->ml);
256 PR_fprintf(err, "%u streams @ %u Kbytes/sec\n", shared->threads, rate);
295 shared->threads += 1;
368 shared = PR_NEWZAP(Shared);
369 shared->ml = PR_NewLock();