[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Suggestions for GNUbg

From: Holger
Subject: Re: [Bug-gnubg] Suggestions for GNUbg
Date: Tue, 08 Oct 2002 01:12:41 +0200

On Mon, 7 Oct 2002 09:26:59 +0000, Joern Thyssen wrote:
>On Mon, Oct 07, 2002 at 10:50:36AM +0200, Jim Segrave wrote
>> It would be possible (but definitely not easy) to start a Tutor mode
>> cube evaluation after gnubg plays (and any synchronous sound) while
>> waiting for the player to make a double/roll decision. If they decide
>> before the cube analysis is done, then you simply discard the work,
>Yes, but it still requires you to start a thread with the analysis and
>terminate that thread if the user continues before it's finished.=20

You could just leave this thread running until it's done and meanwhile
start another thread. The first one shouldn't take too long, and even
if it does, in general there shouldn't accumulate that many concurrent
threads given that a normal user takes more time to think than a

>Also, we should make sure that the user doesn't do anything in the
>interactive thread that interferes with the background analysis, i.e.,
>all evaluation subroutines must be made thread-safe and we should
>terminate the background analysis if the user does "analyse match" and
>possibly also on "hint".

If the user asks to do this then it could all be concurrent. It does
have to be threadsafe, however.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]