Lines Matching defs:myself
107 pthread_t myself = pthread_self();
139 pthread_t myself = pthread_self();
169 pthread_t myself = pthread_self();
195 rw->writer.id = myself;
205 if ((rr = find_reader(myself, rw)) != 0) {
233 * - No writers (or writer is myself), and one of:
240 ((rw->writer_count == 0 || rw->writer.id == myself) &&
243 rw->reader.id == myself))) {
252 if (rw->writer_count == 0 || rw->writer.id == myself) {
296 rw->writer.id = myself;
348 pthread_t myself = pthread_self();
373 rr = find_reader(myself, rw);
375 /* Wait for writer to complete; writer == myself also OK */
376 while (rw->writer_count > 0 && rw->writer.id != myself) {
405 rr = increment_reader(myself, rw);
415 pthread_t myself = pthread_self();
438 rw->writer.id != myself || rw->writer.count == 0) {
464 pthread_t myself = pthread_self();
490 (rw->writer_count > 0 && rw->writer.id != myself)) {
500 if (rr->id == myself)
593 pthread_t myself = pthread_self();
619 if (rw->writer_count > 0 && rw->writer.id == myself) {
631 if (rr->id == myself) {
647 pthread_t myself = pthread_self();
675 (rw->writer.id != myself || rw->writer.count != 1) ||
677 !(rw->reader_count == 1 && rw->reader.id == myself &&
702 const char *myself = "__nisdb_lock_report";
705 printf("%s: NULL argument\n", myself);