locks 54 sys/include/sync.h int locks; /* counter for recursive lock */ locks 57 sys/include/thread.h int locks; /* schedule lock counter */ locks 496 sys/kern/sched.c curthread->locks = 1; locks 520 sys/kern/sched.c curthread->locks++; locks 536 sys/kern/sched.c ASSERT(curthread->locks > 0); locks 539 sys/kern/sched.c if (curthread->locks == 1) { locks 559 sys/kern/sched.c curthread->locks--; locks 530 sys/kern/thread.c ASSERT(curthread->locks > 0); locks 593 sys/kern/thread.c idle_thread.locks = 1; locks 202 sys/sync/mutex.c m->locks++; locks 203 sys/sync/mutex.c ASSERT(m->locks != 0); locks 229 sys/sync/mutex.c m->locks = 1; locks 253 sys/sync/mutex.c m->locks++; locks 254 sys/sync/mutex.c ASSERT(m->locks != 0); locks 259 sys/sync/mutex.c m->locks = 1; locks 284 sys/sync/mutex.c if (m->holder != curthread || m->locks <= 0) { locks 288 sys/sync/mutex.c if (--m->locks == 0) { locks 331 sys/sync/mutex.c m->locks = 0; locks 341 sys/sync/mutex.c m->locks = 1;