コード例 #1
0
ファイル: thread.c プロジェクト: 55171514/golang-china
void
unlock(Lock *l)
{
	m->locks--;
	if(m->locks < 0)
		throw("lock count");
	eventunlock(l);
}
コード例 #2
0
ファイル: thread.c プロジェクト: SteveHuang27/ucore-x64-smp
void
runtime·unlock(Lock *l)
{
	m->locks--;
	if(m->locks < 0)
		runtime·throw("lock count");
	eventunlock(l);
}
コード例 #3
0
ファイル: thread.c プロジェクト: 55171514/golang-china
void
notesleep(Note *n)
{
	eventlock(&n->lock);
	eventunlock(&n->lock);	// Let other sleepers find out too.
}
コード例 #4
0
ファイル: thread.c プロジェクト: 55171514/golang-china
void
notewakeup(Note *n)
{
	eventunlock(&n->lock);
}
コード例 #5
0
ファイル: thread.c プロジェクト: SteveHuang27/ucore-x64-smp
void
runtime·notewakeup(Note *n)
{
	eventunlock(&n->lock);
}