Compare commits

..

1 commit

Author SHA1 Message Date
eab3cf03e5 mutex 2021-12-28 20:53:30 -05:00

View file

@ -45,7 +45,7 @@ fn main() {
let c_lock = Arc::clone(&lock);
let mut lights = c_lock.write().unwrap();
let mut data = pattern.lock().unwrap();
for p in *data {
for p in *pattern {
//let c_lock = Arc::clone(&lock);
//let mut lights = c_lock.write().unwrap();
p.execute(&mut lights);