Skip to content

Commit 62e6250

Browse files
Copilotdanbugs
andcommitted
Make interrupt retry delay methods Linux-only
Co-authored-by: danbugs <[email protected]>
1 parent 1a280b6 commit 62e6250

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hyperlight_host/src/sandbox/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,13 @@ impl SandboxConfiguration {
175175
}
176176

177177
/// Sets the interrupt retry delay
178+
#[cfg(target_os = "linux")]
178179
pub fn set_interrupt_retry_delay(&mut self, delay: Duration) {
179180
self.interrupt_retry_delay = delay;
180181
}
181182

182183
/// Get the delay between retries for interrupts
184+
#[cfg(target_os = "linux")]
183185
pub fn get_interrupt_retry_delay(&self) -> Duration {
184186
self.interrupt_retry_delay
185187
}

0 commit comments

Comments
 (0)