aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-11-13 19:51:56 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-11-13 19:51:56 +0100
commit53dc7f0d3ac3b309c575bb634e35acd3b834d887 (patch)
tree342c64d19687ec2f0f62a25d210c04385aca9c4f
parentaf0cd77bc6f2fd8a0069426937eadd9eea49020d (diff)
primarily use thread::park to halt
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 85be21c..0b0ff19 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -51,6 +51,9 @@ macro_rules! log_raw {
macro_rules! halt {
() => {
+ thread::park();
+
+ // Just in case. Still better than panicking.
loop {
thread::sleep(Duration::MAX);
}