Skip to content

Commit

Permalink
fix: more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Jan 10, 2025
1 parent 6d626b5 commit 72e09f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/services/src/seqlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ impl<T: Copy> SeqLockWriter<T> {
lock.sequence.fetch_add(1, Ordering::Release);

// attempt to perform the write, and catch any panics
// safety: panics are caught and resumed
let result = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| unsafe {
let data = &mut *lock.data.get();
f(data);
Expand Down

0 comments on commit 72e09f9

Please sign in to comment.