Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: multithreading question (OT)

Author: Robert Hyatt

Date: 05:45:51 03/02/01

Go up one level in this thread


On March 02, 2001 at 08:39:57, Pat King wrote:

>if sizeof(somebuiltintype) <= sizeof(sig_atomic_t), is it garunteed that reads
>and writes of somebuiltintype are atomic?
>
>thanks.
>
>Pat


I don't think it matters.  You _first_ use an atomic operation to lock the
data in question, then you don't have to worry about whether the read/write
is atomic.  IE my hash entries are 16 bytes so that would probably never be
an atomic read/write.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.