• 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
Re: straight-C DNS lookup with timeout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: straight-C DNS lookup with timeout?


  • Subject: Re: straight-C DNS lookup with timeout?
  • From: David Rio Vierra <email@hidden>
  • Date: Mon, 30 Dec 2002 00:40:36 -1000

Yes, you can kill pthreads. From `man pthread`:

int pthread_cancel(pthread_t thread)
Cancels execution of a thread.

You acquire the pthread_t from:

int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void
*(*start_routine)(void *), void *arg)
Creates a new thread of execution.

- Rio


On Monday, December 30, 2002, at 12:36 AM, Philip George wrote:

Well, that would rock, except that currently I'm using NSThreads, which cannot be killed (unless someone has figured out how to do so, since the last time we all discussed this topic).

I really should be using pthreads anyway for portability reasons. I wonder if pthreads can be killed? If so, that would be great. I would make the switch in a heartbeat if that were the case.

Anyone know if pthreads can be killed from the main thread?

- Philip
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: straight-C DNS lookup with timeout?
      • From: Dan Sugalski <email@hidden>
    • Re: straight-C DNS lookup with timeout?
      • From: Dietrich Epp <email@hidden>
References: 
 >Re: straight-C DNS lookup with timeout? (From: Philip George <email@hidden>)

  • Prev by Date: Re: straight-C DNS lookup with timeout?
  • Next by Date: Re: What are double asterisks for?
  • Previous by thread: Re: straight-C DNS lookup with timeout?
  • Next by thread: Re: straight-C DNS lookup with timeout?
  • Index(es):
    • Date
    • Thread