From e65c023309173aa291952143537f174888a8de86 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 16 Apr 2009 13:00:40 -0400 Subject: Avoid thread death via message receive --- tests/threads.ur | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/threads.ur (limited to 'tests/threads.ur') diff --git a/tests/threads.ur b/tests/threads.ur new file mode 100644 index 00000000..447b7a74 --- /dev/null +++ b/tests/threads.ur @@ -0,0 +1,18 @@ +fun main () = + buf <- Buffer.create; + let + fun loop1 () = + Buffer.write buf "A"; + sleep 9; + loop1 () + + fun loop2 () = + Buffer.write buf "B"; + sleep 9; + error Darn + loop2 () + in + return + + + end -- cgit v1.2.3