Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: Thread issues


Chronological Thread 
  • From: James Bigler < >
  • To:
  • Subject: [Manta] Re: Thread issues
  • Date: Wed, 15 Apr 2009 09:33:56 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=COHnCtL5Gsxlr1o45bxIxLP+Ev38RZE6r6ulveW9ZsIevwtSC9AwvTzcb9/zH1+MID qOfH7oRlUSYx2BjWnizxUs5r7G5B7baHIOT9OQrXrQ8wgxikyx2CTczXRFl7G5g+kXNM RdjBa5v9632v6JvG6MVWE31Xd1IwoIkzjoAJY=

So are you experiencing problems, or is this just something you
noticed in the code?

James

On Wed, Apr 15, 2009 at 8:09 AM, Bo Huang 
< >
 wrote:
> This may be a bug: In Thread_Shutdown(), the line
>    threadids.erase(GetCurrentThreadId());
> is not protected by a mutex lock.
>
> Question:
> The priv->done and priv->delete_ready members of the struct Thread_private 
> are semaphores with initial size 0 and max size 100. Normally, 
> Thread_shutdown() releases priv->done by 1 as a one time procedure. If 100 
> non-worker threads call proc0 Thread.Join(), does it mean only one will go 
> through Join()?
>
> Moreover, what might be the reason we do not use manta's Mutex or Semaphore 
> abstractions for these two members (and other potential ones such as 
> lock_scheduler() )?
>
> Thanks
>
>



Archive powered by MHonArc 2.6.16.

Top of page