[Top][All Lists]

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

Re: [Bug-gnubg] Simple multi-threading...

From: Jonathan Kinsey
Subject: Re: [Bug-gnubg] Simple multi-threading...
Date: Sat, 06 Jan 2007 09:19:09 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv: Gecko/20061207 Thunderbird/ Mnenhy/

Christian Anthon wrote:
> Hi Jon I gave the code a quick try on my single core/cpu amd64 and it
> seemed to mostly work.
> A diff of what was needed to make it compile is attached. I'm going to
> send a couple of more mails to point out the issues that I found.

Not time to go through the diff, but try these things:

1) Remove corecount.c, just define TRY_COUTING_PROCEESING_UNITS to 0.
2) Move MT_InitThreads() from eval.c to the start of main() -
g_thread_init() may need to be called at the very start.  I assume
you've linked to gthreads-2.0.lib.
3) Temporarily comment out lines 328-341 of MT_WaitForTasks(), this will
remove all gui updates.
4) Run gnubg and try changing the number of threads in the options
dialog, check that the number of threads in the process alters to 1+what
you set (using ps I guess).  This will check that the multi-threaded
logic is working.

Now if you get any problems analysing a match, it's likely to be a
re-entrance problem in the code (use of static/globals).


Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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