void runtime·unlock(Lock *l) { if(--m->locks < 0) runtime·throw("runtime·unlock: lock count"); futexunlock(l); }
void unlock(Lock *l) { m->locks--; if(m->locks < 0) throw("lock count"); futexunlock(l); }
void runtime·unlock(Lock *l) { m->locks--; if(m->locks < 0) runtime·throw("lock count"); futexunlock(l); }
void notesleep(Note *n) { futexlock(&n->lock); futexunlock(&n->lock); // Let other sleepers find out too. }
void notewakeup(Note *n) { futexunlock(&n->lock); }
void runtime·notewakeup(Note *n) { futexunlock(&n->lock); }