Skip navigation.
 
mlRe: straight-C DNS lookup with timeout?
FROM : Dan Sugalski
DATE : Mon Dec 30 15:55:19 2002

At 12:40 AM -1000 12/30/02, David Rio Vierra wrote:
>Yes, you can kill pthreads.  From `man pthread`:

While you can, you really, *really* shouldn't. pthread_kill was one
of those things that seemed like a really bad idea at the time but
went into the standard under pressure anyway. Killing threads is a
good way to leave the entire application in an unstable state and
have it die a horrible death.

If you want a DNS lookup with timeout, you may have to go roll your
own lookup library. (or find one that someone's already done--might
want to look around Freshmeat.net) While not trivial, it's not that
tough to do, as it's just a UDP client.

>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_removed>
>Help/Unsubscribe/Archives:
>http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>Do not post admin requests to the list. They will be ignored.



--
                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
<email_removed>                        have teddy bears and even
                                      teddy bears get drunk
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlstraight-C DNS lookup with timeout? Philip George Dec 30, 11:09
mlRe: straight-C DNS lookup with timeout? David Rio Vierra Dec 30, 11:22
mlRe: straight-C DNS lookup with timeout? Philip George Dec 30, 11:36
mlRe: straight-C DNS lookup with timeout? David Rio Vierra Dec 30, 11:40
mlRe: straight-C DNS lookup with timeout? Dietrich Epp Dec 30, 13:07
mlRe: straight-C DNS lookup with timeout? Dan Sugalski Dec 30, 15:55
mlRe: straight-C DNS lookup with timeout? Hasan Diwan Dec 30, 20:48
mlRe: straight-C DNS lookup with timeout? Andrew Dec 31, 00:09
mlRe: straight-C DNS lookup with timeout? Philip George Dec 31, 13:37
mlRe: straight-C DNS lookup with timeout? Andrew Dec 31, 13:58
mlRe: straight-C DNS lookup with timeout? Philip George Jan 2, 11:18
mlRe: straight-C DNS lookup with timeout? Philip George Jan 2, 11:56
mlRe: straight-C DNS lookup with timeout? Andrew Jan 2, 13:10
mlRe: straight-C DNS lookup with timeout? Philip George Jan 2, 13:19
mlRe: straight-C DNS lookup with timeout? Andrew Jan 2, 13:25
mlRe: straight-C DNS lookup with timeout? Philip George Jan 2, 15:25
mlRe: straight-C DNS lookup with timeout? Chris Ridd Jan 2, 16:03
mlRe: straight-C DNS lookup with timeout? Philip George Jan 2, 16:39
mlRe: straight-C DNS lookup with timeout? Chris Hanson Jan 2, 17:12
mlRe: straight-C DNS lookup with timeout? Philip George Jan 2, 23:17
mlRe: straight-C DNS lookup with timeout? Andrew Jan 3, 05:26
mlRe: straight-C DNS lookup with timeout? Kyle Moffett Jan 5, 21:47
mlRe: straight-C DNS lookup with timeout? pg Jan 6, 01:41