Compare commits

..

1 commit

Author SHA1 Message Date
6333245304 mutex 2021-12-28 20:55:01 -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 *pattern {
for p in *data {
//let c_lock = Arc::clone(&lock);
//let mut lights = c_lock.write().unwrap();
p.execute(&mut lights);