• 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
Where did mach_thread_self() go?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where did mach_thread_self() go?


  • Subject: Where did mach_thread_self() go?
  • From: EJ Campbell <email@hidden>
  • Date: Wed, 28 Aug 2002 12:20:31 -0700

I'm receiving a link error that 'mach_thread_self()' is undefined when linking a Code Warrior 8 project on Mac OS X 10.2 GM. The same code worked and linked fine on Mac OS X 10.1.

Where does 'mach_thread_self()' reside on Jaguar? Has anyone else ran into this problem, and if so, how did you solve it? The reason I need to use the call is that I want to set the priority of an MPTask, and the easiest way to do it is from within the task with a call such as this:
rv = thread_policy_set ( mach_thread_self(),
THREAD_TIME_CONSTRAINT_POLICY,
(thread_policy_t) &constraintPolicy,
THREAD_TIME_CONSTRAINT_POLICY_COUNT );

If mach_thread_self() has some how gone away, does anyone know of another way to retrieve a pointer to an MPTask's underlying mach thread?

Thanks,
EJ
_______________________________________________
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.

  • Follow-Ups:
    • Re: Where did mach_thread_self() go? (solved)
      • From: EJ Campbell <email@hidden>
  • Prev by Date: Re: thread_policy( ) and thread_policy_set( ) : where are those functions ?
  • Next by Date: Revisited Re: AudioUnitSetParameter question
  • Previous by thread: Re: thread_policy( ) and thread_policy_set( ) : where are those functions ?
  • Next by thread: Re: Where did mach_thread_self() go? (solved)
  • Index(es):
    • Date
    • Thread