Re: mach_thread_policy() link error
Re: mach_thread_policy() link error
- Subject: Re: mach_thread_policy() link error
- From: "Roni Music" <email@hidden>
- Date: Sat, 1 Mar 2003 17:02:38 +0100
Hi,
found out that the pthread thread id must be converterd to a mach thread id with:
pthread_mach_thread_np()
then calling mach_thread_policy() etc works fine
Rolf
>
>
Message: 2
>
Date: Fri, 28 Feb 2003 17:10:09 -0800
>
Subject: Re: mach_thread_policy() link error
>
From: Stephen Davis <email@hidden>
>
To: email@hidden
>
>
You are getting link errors b/c the compiler is assuming
>
mach_thread_policy() is a c++ function. The mach headers do not
>
properly guard themselves against c++ so you need to do something like
>
the following:
>
>
extern "C"
>
{
>
#include <mach/mach.h>
>
}
>
>
stephen
>
>
On Friday, February 28, 2003, at 04:45 PM, Roni Music wrote:
>
>
> Hi,
>
>
>
> This may have been discussed before?
>
>
>
> Replacing the MPLibrary stuff with pthreads / mach_thread_policy()
>
>
>
> using CodeWarrior 8.3
>
> Mach-O application
>
> C++
>
>
>
> what framework/library is needed to link to
>
> mach_thread_policy() ??
>
>
>
> Thanks for any help
>
>
>
> Rolf Nilssson
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.