Skip to content

Commit

Permalink
Merge pull request #113 from bastion-rs/stats-sampler-improvements
Browse files Browse the repository at this point in the history
Stat sampler improvements
  • Loading branch information
vertexclique committed Dec 3, 2019
2 parents 9d7c4d2 + 4191e42 commit 860fccb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bastion-executor/src/distributor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ impl Distributor {
placement::set_for_current(core);

// run initial stats generation for cores
worker::stats_generator(core.id.clone(), &wrk);
worker::stats_generator(core.id, &wrk);
// actual execution
worker::main_loop(core.id.clone(), wrk);
worker::main_loop(core.id, wrk);
})
.expect("cannot start the thread for running proc");
}
Expand Down
1 change: 0 additions & 1 deletion bastion-executor/src/placement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ mod macos {
pub fn get_core_ids() -> Option<Vec<CoreId>> {
Some(
(0..(num_cpus::get()))
.into_iter()
.map(|n| CoreId { id: n as usize })
.collect::<Vec<_>>(),
)
Expand Down
4 changes: 2 additions & 2 deletions lightproc/src/lightproc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ impl LightProc {
S: Fn(LightProc) + Send + Sync + 'static,
{
let raw_proc = RawProc::allocate(stack, future, schedule);
let proc = LightProc { raw_proc: raw_proc };
let proc = LightProc { raw_proc };
let handle = ProcHandle {
raw_proc: raw_proc,
raw_proc,
_marker: PhantomData,
};
(proc, handle)
Expand Down

0 comments on commit 860fccb

Please sign in to comment.