diff options
| author | Irving A.J. Rivas Z. <axel.rivas@gmail.com> | 2015-10-19 10:02:46 -0400 |
|---|---|---|
| committer | Irving A.J. Rivas Z. <axel.rivas@gmail.com> | 2015-10-19 10:02:46 -0400 |
| commit | e2ecf279b6795d0a86a964fdc7a31c1f3981456f (patch) | |
| tree | ae5fd23ca2acbd29a182143cd7cd5d7ab2673577 /src/rustllvm/RustWrapper.cpp | |
| parent | 3e268f2fbafca7e0a59bf77e17985a27c61d5a11 (diff) | |
| download | rust-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
