From f8b16fea617f5b75bb3f25051afb24bdfc21706c Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Wed, 8 Sep 2010 16:16:10 +0200 Subject: [PATCH] Remove unused variable thread_id. --- uct/search.c | 3 --- uct/search.h | 1 - 2 files changed, 4 deletions(-) diff --git a/uct/search.c b/uct/search.c index ede69ab..4d9ac62 100644 --- a/uct/search.c +++ b/uct/search.c @@ -70,8 +70,6 @@ static const struct time_info default_ti = { /* Set in thread manager in case the workers should stop. */ volatile sig_atomic_t uct_halt = 0; -/* ID of the running worker thread. */ -__thread int thread_id = -1; /* ID of the thread manager. */ static pthread_t thread_manager; bool thread_manager_running; @@ -87,7 +85,6 @@ spawn_worker(void *ctx_) struct uct_thread_ctx *ctx = ctx_; /* Setup */ fast_srandom(ctx->seed); - thread_id = ctx->tid; /* Run */ ctx->games = uct_playouts(ctx->u, ctx->b, ctx->color, ctx->t); /* Finish */ diff --git a/uct/search.h b/uct/search.h index 37eb524..732d2ed 100644 --- a/uct/search.h +++ b/uct/search.h @@ -29,7 +29,6 @@ struct tree_node; /* Thread manager state */ extern volatile sig_atomic_t uct_halt; -extern __thread int thread_id; extern bool thread_manager_running; /* Search thread context */ -- 2.11.4.GIT