Source file
src/runtime/lockrank_off.go
1
2
3
4
5
6
7 package runtime
8
9 const staticLockRanking = false
10
11
12
13 type lockRankStruct struct {
14 }
15
16 func lockInit(l *mutex, rank lockRank) {
17 }
18
19 func getLockRank(l *mutex) lockRank {
20 return 0
21 }
22
23 func lockWithRank(l *mutex, rank lockRank) {
24 lock2(l)
25 }
26
27
28
29
30 func acquireLockRankAndM(rank lockRank) {
31 acquirem()
32 }
33
34 func unlockWithRank(l *mutex) {
35 unlock2(l)
36 }
37
38
39
40
41 func releaseLockRankAndM(rank lockRank) {
42 releasem(getg().m)
43 }
44
45
46
47
48 func lockWithRankMayAcquire(l *mutex, rank lockRank) {
49 }
50
51
52 func assertLockHeld(l *mutex) {
53 }
54
55
56 func assertRankHeld(r lockRank) {
57 }
58
59
60 func worldStopped() {
61 }
62
63
64 func worldStarted() {
65 }
66
67
68 func assertWorldStopped() {
69 }
70
71
72 func assertWorldStoppedOrLockHeld(l *mutex) {
73 }
74
View as plain text