summaryrefslogtreecommitdiff
path: root/Test/og/lock.bpl
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2014-07-15 02:26:38 -0700
committerGravatar qadeer <unknown>2014-07-15 02:26:38 -0700
commit7395870356fb83f1b7cab70c95523d1c9f5738d4 (patch)
treeb8677cada625458aacba867081549e4a784c453d /Test/og/lock.bpl
parent85a60be8a0a7ef1438908364b7997dddc4524ed1 (diff)
simplified yield type chcking and added treiber stack (not fully done)
Diffstat (limited to 'Test/og/lock.bpl')
-rw-r--r--Test/og/lock.bpl10
1 files changed, 2 insertions, 8 deletions
diff --git a/Test/og/lock.bpl b/Test/og/lock.bpl
index 90357d4c..86c382d8 100644
--- a/Test/og/lock.bpl
+++ b/Test/og/lock.bpl
@@ -7,12 +7,10 @@ procedure {:yields} {:phase 2} main()
yield;
while (*)
{
- yield;
-
async call Customer();
-
yield;
}
+ yield;
}
procedure {:yields} {:phase 2} Customer()
@@ -20,16 +18,12 @@ procedure {:yields} {:phase 2} Customer()
yield;
while (*)
{
- yield;
-
call Enter();
-
yield;
-
call Leave();
-
yield;
}
+ yield;
}
procedure {:yields} {:phase 1,2} Enter()