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