• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: pthreads and standard C library calls and maybe magic Xcode switches
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pthreads and standard C library calls and maybe magic Xcode switches


  • Subject: Re: pthreads and standard C library calls and maybe magic Xcode switches
  • From: "Shawn Erickson" <email@hidden>
  • Date: Tue, 21 Aug 2007 14:53:24 -0700

On 8/21/07, Cem Karan <email@hidden> wrote:

> I'm continuing to work on my pthreads based program, and realized
> that I've run into a potential problem.

I think you misunderstand what volatile means and when you need to use it.

In the examples you have given the use of volatile isn't needed since
the locking constructs you are using will ensure proper memory
barriers exist.

-Shawn
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: pthreads and standard C library calls and maybe magic Xcode switches
      • From: Cem Karan <email@hidden>
References: 
 >pthreads and standard C library calls and maybe magic Xcode switches (From: Cem Karan <email@hidden>)

  • Prev by Date: pthreads and standard C library calls and maybe magic Xcode switches
  • Next by Date: Re: pthreads and standard C library calls and maybe magic Xcode switches
  • Previous by thread: pthreads and standard C library calls and maybe magic Xcode switches
  • Next by thread: Re: pthreads and standard C library calls and maybe magic Xcode switches
  • Index(es):
    • Date
    • Thread