Add controlled panic on send error

Signed-off-by: Trivernis <trivernis@protonmail.com>
main
Trivernis 4 years ago
parent 2848904507
commit 9070f7d48e

@ -4,7 +4,7 @@ description = "OpenCL Stream execution framework"
repository = "https://github.com/parallel-programming-hwr/ocl-stream-rs"
license = "Apache-2.0"
readme = "README.md"
version = "0.3.1"
version = "0.3.2"
authors = ["Trivernis <trivernis@protonmail.com>"]
edition = "2018"

@ -96,7 +96,9 @@ impl OCLStreamExecutor {
let sender = context.sender().clone();
if let Err(e) = func(context) {
sender.err(e).unwrap();
if let Err(e) = sender.err(e) {
panic!("Failed to forward error to receiver: {}", e);
}
}
})
.expect("Failed to spawn ocl thread");

Loading…
Cancel
Save