Lines Matching refs:myself
167 pthread_t myself = pthread_self();
193 rw->writer.id = myself;
203 if ((rr = find_reader(myself, rw)) != 0) {
232 * - No writers (or writer is myself), and one of:
239 (((rw->writer_count == 0 || rw->writer.id == myself) &&
242 rw->reader.id == myself))) {
251 if (rw->writer_count == 0 || rw->writer.id == myself) {
295 rw->writer.id = myself;
347 pthread_t myself = pthread_self();
372 rr = find_reader(myself, rw);
374 /* Wait for writer to complete; writer == myself also OK */
375 while (rw->writer_count > 0 && rw->writer.id != myself) {
404 rr = increment_reader(myself, rw);
414 pthread_t myself = pthread_self();
437 rw->writer.id != myself || rw->writer.count == 0) {
463 pthread_t myself = pthread_self();
489 (rw->writer_count > 0 && rw->writer.id != myself)) {
499 if (rr->id == myself)
592 pthread_t myself = pthread_self();
618 if (rw->writer_count > 0 && rw->writer.id == myself) {
630 if (rr->id == myself) {
646 pthread_t myself = pthread_self();
673 (rw->writer.id != myself || rw->writer.count != 1)) ||
675 !(rw->reader_count == 1 && rw->reader.id == myself &&
700 char *myself = "__nisdb_lock_report";
703 printf("%s: NULL argument\n", myself);