Re: thread_policy_set starts to give errors...
Re: thread_policy_set starts to give errors...
- Subject: Re: thread_policy_set starts to give errors...
- From: Marc Van Olmen <email@hidden>
- Date: Fri, 22 Jul 2005 17:45:52 -0400
Some wild thought:
• 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:
So I changed my code and now in the first line in my Thread
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.
cheers,
mvo
On Jul 22, 2005, at 4:23 PM, Marc Van Olmen wrote:
chris,
thx for you reaction
I noticed that
pthread_mach_thread_np(mPThread)
returned the value '64555'
the mPThread seems to be having a normal value.
The problem doesn't happens all the time so far it seems to be happen
random.
cheers,
mvo
On Jul 22, 2005, at 1:29 PM, Chris Sarcone wrote:
Marc --
decimal 268435459 or in hex 0x10000003
This error corresponds to:
<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.
-- Chris
------------------
6 Infinite Loop
M/S 306-2MS
Cupertino CA 95014
phone: (408) 974-4033
fax: (408) 862-7577
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden