about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorIrving A.J. Rivas Z. <axel.rivas@gmail.com>2015-10-19 10:02:46 -0400
committerIrving A.J. Rivas Z. <axel.rivas@gmail.com>2015-10-19 10:02:46 -0400
commite2ecf279b6795d0a86a964fdc7a31c1f3981456f (patch)
treeae5fd23ca2acbd29a182143cd7cd5d7ab2673577 /src/rustllvm/RustWrapper.cpp
parent3e268f2fbafca7e0a59bf77e17985a27c61d5a11 (diff)
downloadrust-e2ecf279b6795d0a86a964fdc7a31c1f3981456f.tar.gz
rust-e2ecf279b6795d0a86a964fdc7a31c1f3981456f.zip
Made the example capable of consistent deadlocking
To augment the didactic effect, made placed the thread::sleep_ms call in the last example, so that there will be time for the other locks to happen; without this, I was unable to observe the deadlock in over 1,000 runs when there was no left-handed philosopher.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions