C/C++
lock_d.txt
Associated article: Lock Options
Tags: C/C++ Parallel Design
Published source code accompanying the article by Bartosz Milewski in which he examines the two major problems in concurrent programs -- data races and deadlocks. The solutions that Bartosz presents in the D language is based on a deadlock-avoidance protocol. Also see LOCK_D.ZIP.
Lock Options
by Bartosz Milewski
Listing One
interface NoLock {}
interface A: NoLock {}
interface B: NoLock {}
interface C: NoLock {}
interface A_B: B,A {}
interface A_C: C,A {}
interface B_C: C,B {}
interface A_B_C: B_C,A_...


