Skip to content

Commit

Permalink
rename Searcher::start -> Searcher::run
Browse files Browse the repository at this point in the history
More clear that the function is blocking, and not starting another thread.
  • Loading branch information
bsamseth committed Dec 31, 2023
1 parent db6c64a commit 1d04812
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion goldfish/engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl uci::Engine for Engine {
let game = game.clone();
self.searcher = Some(std::thread::spawn(move || {
let mut searcher = search::Searcher::new(game, options, info_writer, ss);
searcher.start();
searcher.run();
}));
}

Expand Down
2 changes: 1 addition & 1 deletion goldfish/engine/src/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl Searcher {
}
}

pub fn start(&mut self) {
pub fn run(&mut self) {
// TODO: Implement search
for i in 0..10 {
if self.stop_signal.check() {
Expand Down

0 comments on commit 1d04812

Please sign in to comment.