C++ and odd pthread behavior
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