Add a naive single thread algorithm
This commit is contained in:
parent
5d2dee258c
commit
546dc75d02
3 changed files with 11 additions and 0 deletions
3
src/algorithm.rs
Normal file
3
src/algorithm.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
mod single_thread;
|
||||||
|
|
||||||
|
pub use single_thread::single_thread;
|
7
src/algorithm/single_thread.rs
Normal file
7
src/algorithm/single_thread.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
use crate::Task;
|
||||||
|
|
||||||
|
pub fn single_thread(data: &[Task]) {
|
||||||
|
for task in data {
|
||||||
|
task.execute();
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,3 +1,4 @@
|
||||||
|
mod algorithm;
|
||||||
mod data;
|
mod data;
|
||||||
|
|
||||||
use pbkdf2::pbkdf2_hmac;
|
use pbkdf2::pbkdf2_hmac;
|
||||||
|
|
Loading…
Reference in a new issue