• 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
Exiting a cthread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exiting a cthread?


  • Subject: Exiting a cthread?
  • From: Tomas Zahradnicky <email@hidden>
  • Date: Tue, 11 Apr 2006 22:46:19 +0200

Dear Darwin developers,

my app creates a two threads in a remote context and I'd like to ask what's the proper way to have cthread "commit suicide" to not cause resource leaks when I'm finished with it.

Is OK to call

  thread_terminate( mach_thread_self() );

from that cthread and expect nothing more to be executed beyond that point?

Thanks,

  Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
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


  • Follow-Ups:
    • Re: Exiting a cthread?
      • From: Jim Magee <email@hidden>
  • Prev by Date: Re: kevent and wait time?
  • Next by Date: Re: Exiting a cthread?
  • Previous by thread: Re: Running AIX executables on Intel based Macs
  • Next by thread: Re: Exiting a cthread?
  • Index(es):
    • Date
    • Thread