Skip to content

Commit

Permalink
Batched timeout doc (#2716)
Browse files Browse the repository at this point in the history
* timeout doc

* clp

* FMT
  • Loading branch information
tokatoka authored Nov 21, 2024
1 parent f3ab3c7 commit 391147c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libafl/src/executors/hooks/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ impl TimerStruct {
#[cfg(target_os = "linux")]
#[must_use]
/// Constructor but use batch mode
/// Timeout mechanism with imprecise timing.
///
/// The timeout will trigger after t seconds and at most within 2*t seconds.
/// This means the actual timeout may occur anywhere in the range [t, 2*t],
/// providing a flexible but bounded execution time limit.
pub fn batch_mode(exec_tmout: Duration) -> Self {
let mut me = Self::new(exec_tmout);
me.batch_mode = true;
Expand Down

0 comments on commit 391147c

Please sign in to comment.