Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 180 Bytes
import "unistd"
async {
"entered a" print
lock #uniq {
Sleep(1)
}
}
async {
"entered b" print
lock #uniq {
"lock released" print
}
}
wait