Re: thread_policy_set starts to give errors...
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Some wild thought: So I changed my code and now in the first line in my Thread cheers, mvo On Jul 22, 2005, at 4:23 PM, Marc Van Olmen wrote: chris, thx for you reaction I noticed that returned the value '64555' the mPThread seems to be having a normal value. cheers, mvo On Jul 22, 2005, at 1:29 PM, Chris Sarcone wrote: Marc -- This error corresponds to: -- Chris ------------------ 6 Infinite Loop M/S 306-2MS Cupertino CA 95014 phone: (408) 974-4033 fax: (408) 862-7577 email: sarcone@apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... • I create the thread like this: (This could also be called in thread so not only in the main loop.) theResult = pthread_create(&mPThread, NULL, (ThreadRoutine)cOS_Thread::Entry, this); Then right afterwards I set priority.... Could it maybe be to soon in certain circumstances for the mach kernel that I set the priority???? Thats what was my tought: I'm setting the priority and that seems so far to work fine. I just tested for about 20 minutes so not yet any longtime testing info yet. pthread_mach_thread_np(mPThread) The problem doesn't happens all the time so far it seems to be happen random. decimal 268435459 or in hex 0x10000003 <mach/message.h> #define MACH_SEND_INVALID_DEST 0x10000003 /* Bogus destination port. */ It appears the port for the pthread has possibly become invalid. Make sure your mPThread is valid and that pthread_mach_thread_np() returns a valid port. If those both seem OK, then file a bug with a test case that shows how this could occur. This email sent to site_archiver@lists.apple.com
participants (1)
-
Marc Van Olmen