• 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
C++ and odd pthread behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C++ and odd pthread behavior


  • Subject: C++ and odd pthread behavior
  • From: Kaveh Kardan <email@hidden>
  • Date: Tue, 14 Mar 2006 17:23:58 -1000

I'm encountering some very odd behavior when running multi-threaded code in XCode.

I have 4 threads which allocate tasks, push them onto a stack, and pop them off to execute them. The odd thing is that C++ on occasion thinks that the type of an object is actually that of its parent class, and calls the parent's method instead of the object's. If I set the number of threads to 1, this does not happen and the code runs correctly.

The code also runs correctly with 4 threads on a Linux system.

Has anyone seen anything like this?

Regards,

Kaveh

Kaveh Kardan                 Chief Technologist
email@hidden             Academy for Creative Media
(808)956-5302                University of Hawaii


_______________________________________________ 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: C++ and odd pthread behavior
      • From: Lawrence Gold <email@hidden>
  • Prev by Date: Re: "Open Quickly" help!
  • Next by Date: Xcode 2.2 vs 1.5
  • Previous by thread: Re: Which debugging bug do you prefer?
  • Next by thread: Re: C++ and odd pthread behavior
  • Index(es):
    • Date
    • Thread