@@ -164,7 +164,7 @@ pub fn extended_compute_move<L: ComputeMoveLogger, Out: ComputeMoveOutput, FE: F
164164 mut mid : i32 ,
165165 mut exact : i32 ,
166166 mut wld : i32 , mut echo : i32 , g_state : & mut FullState ,
167- update_cb : fn ( & EvaluatedList ) , mut should_stop : StopFn )
167+ update_cb : fn ( & EvaluatedList ) , mut should_stop : StopFn , thor : & Thor )
168168 -> EvaluatedList {
169169 let mut list = EvaluatedList :: new ( ) ;
170170 let mut i: i32 = 0 ;
@@ -341,7 +341,7 @@ pub fn extended_compute_move<L: ComputeMoveLogger, Out: ComputeMoveOutput, FE: F
341341 0 , 0 ,
342342 1 , & mut shallow_info, g_state. config . display_pv ,
343343 g_state. config . echo ,
344- g_state) ;
344+ g_state, thor ) ;
345345 if shallow_info. type_0 == PASS_EVAL {
346346 /* Don't allow pass */
347347 compute_move :: < L , Out , FE , Thor > ( side_to_move, 0 ,
@@ -351,7 +351,7 @@ pub fn extended_compute_move<L: ComputeMoveLogger, Out: ComputeMoveOutput, FE: F
351351 0 , 0 ,
352352 1 , & mut shallow_info, g_state. config . display_pv ,
353353 g_state. config . echo ,
354- g_state) ;
354+ g_state, thor ) ;
355355 if shallow_info. type_0 == PASS_EVAL {
356356 /* Game over */
357357 disc_diff = disc_count ( side_to_move, & ( g_state. board ) . board ) -
@@ -502,7 +502,7 @@ pub fn extended_compute_move<L: ComputeMoveLogger, Out: ComputeMoveOutput, FE: F
502502 1 , & mut this_eval,
503503 g_state. config . display_pv ,
504504 g_state. config . echo ,
505- g_state) ;
505+ g_state, thor ) ;
506506 }
507507 if force_return != 0 || should_stop ( ) {
508508 /* Clear eval and exit search immediately */
@@ -528,7 +528,7 @@ pub fn extended_compute_move<L: ComputeMoveLogger, Out: ComputeMoveOutput, FE: F
528528 current_wld - 1 ,
529529 1 , & mut this_eval, g_state. config . display_pv ,
530530 g_state. config . echo ,
531- g_state) ;
531+ g_state, thor ) ;
532532 }
533533 if this_eval. type_0 == PASS_EVAL {
534534 /* Game over */
@@ -881,7 +881,8 @@ pub fn generic_compute_move<L: ComputeMoveLogger, Out: ComputeMoveOutput, FE: Fr
881881 eval_info : & mut EvaluationType ,
882882 logger : & mut Option < L > ,
883883 display_pv : i32 ,
884- echo : i32 , g_state : & mut FullState
884+ echo : i32 , g_state : & mut FullState ,
885+ thor : & Thor
885886)
886887 -> i8 {
887888 let mut book_eval_info = EvaluationType :: new ( ) ;
@@ -1300,15 +1301,18 @@ pub fn compute_move<L: ComputeMoveLogger, Out: ComputeMoveOutput, FE: FrontEnd,
13001301 wld : i32 ,
13011302 search_forced : i32 ,
13021303 eval_info : & mut EvaluationType , display_pv : i32 , echo : i32 ,
1303- g_state : & mut FullState )
1304+ g_state : & mut FullState ,
1305+ thor : & Thor
1306+ )
13041307 -> i8 {
13051308 return generic_compute_move :: < L , Out , FE , Thor > (
13061309 side_to_move, update_all, my_time,
13071310 my_incr, timed_depth,
13081311 book, mid,
13091312 exact, wld,
13101313 search_forced, eval_info, & mut L :: create_log_file_if_needed ( ) , display_pv, echo,
1311- g_state
1314+ g_state,
1315+ thor
13121316 ) ;
13131317}
13141318
0 commit comments