gochatai/pachi_py/pachi/uct/uct.c
/* uct_search_stop() frontend for the pondering (non-genmove) mode, and
 * to stop the background search for a slave in the distributed engine. */
uct_search_stop() frontend for the pondering (non-genmove) mode, and
to stop the background search for a slave in the distributed engine.
uct_search_stop () frontend for the pondering ( non - genmove ) mode and to stop the background search for a slave in the distributed engine .
void
uct_pondering_stop(struct uct *u)
{
	if (!thread_manager_running)
		return;
	struct uct_thread_ctx *ctx = uct_search_stop();
	if (UDEBUGL(1)) {
		if (u->pondering) fprintf(stderr, "(pondering) ");
		uct_progress_status(u, ctx->t, ctx->color, ctx->games, NULL);
	}
	if (u->pondering) {
		free(ctx->b);
		u->pondering = false;
	}
}
void uct_pondering_stop ( struct uct * u ) { if ( ! thread_manager_running ) return ; struct uct_thread_ctx * ctx = uct_search_stop ( ) ; if ( UDEBUGL ( 1 ) ) { if ( u -> pondering ) fprintf ( stderr , " " ) ; uct_progress_status ( u , ctx -> t , ctx -> color , ctx -> games , NULL ) ; } if ( u -> pondering ) { free ( ctx -> b ) ; u -> pondering = false ; } }
uct_search_stop() frontend for the pondering (non-genmove) mode, and
 to stop the background search for a slave in the distributed engine.
uct_search_stop () frontend for the pondering ( non - genmove ) mode and to stop the background search for a slave in the distributed engine .
/* Stop the thread manager. */