Exemple #1
0
void
unlock(Lock *l)
{
	m->locks--;
	if(m->locks < 0)
		throw("lock count");
	eventunlock(l);
}
Exemple #2
0
void
runtime·unlock(Lock *l)
{
	m->locks--;
	if(m->locks < 0)
		runtime·throw("lock count");
	eventunlock(l);
}
Exemple #3
0
void
notesleep(Note *n)
{
	eventlock(&n->lock);
	eventunlock(&n->lock);	// Let other sleepers find out too.
}
Exemple #4
0
void
notewakeup(Note *n)
{
	eventunlock(&n->lock);
}
Exemple #5
0
void
runtime·notewakeup(Note *n)
{
	eventunlock(&n->lock);
}