Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jul 14, 2024
1 parent 493b83e commit 4457ec6
Show file tree
Hide file tree
Showing 12 changed files with 814 additions and 1,137 deletions.
526 changes: 13 additions & 513 deletions content/posts/icc_1_seqlock/code/Cargo.lock

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions content/posts/icc_1_seqlock/code/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ edition = "2021"
[dependencies]
core_affinity = "0.8.1"
rand = "0.8.5"
ma_timing = {path = "/home/ponet/Software/rustdev/ma_timing/crates/ma_timing"}
ma_time = {path = "/home/ponet/Software/rustdev/ma_timing/crates/ma_time"}
ma_queues= {path = "/home/ponet/Software/rustdev/ma_ipc/crates/ma_queues"}
ma_timing = {git = "https://github.com/louisponet/ma_timing"}
ma_time = {git = "https://github.com/louisponet/ma_timing"}
ctrlc = "3.4.4"
iced-x86 = { version = "1.21.0" }
[dev-dependencies]
criterion = "*"
quanta = "*"
Expand Down
9 changes: 3 additions & 6 deletions content/posts/icc_1_seqlock/code/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use std::arch::x86_64::{__rdtscp, _mm_clflush, _mm_lfence};
use std::sync::atomic::{compiler_fence, fence, AtomicBool, AtomicI32, AtomicUsize, Ordering};
use std::sync::{Arc, Barrier};
use std::time::Duration;
use std::arch::x86_64::__rdtscp;
use std::sync::atomic::{AtomicI32, Ordering};

use code::SeqLock;
// use ma_queues::seqlock::SeqLock;
Expand Down Expand Up @@ -97,8 +95,7 @@ fn timed_consumer(lock: &SeqLock<TimingMessage>)
timer.start();
lock.read(&mut m);
if m.rdtscp != last {
timer.stop();
timer.latency_till_stop(m.rdtscp);
timer.stop_and_latency(m.rdtscp);
}
last = m.rdtscp;
}
Expand Down
2 changes: 1 addition & 1 deletion content/posts/icc_2_queues_vectors/Queue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4457ec6

Please sign in to comment.