• 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: Terminating a blocked NSThread from outside
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Terminating a blocked NSThread from outside


  • Subject: Re: Terminating a blocked NSThread from outside
  • From: Andy <email@hidden>
  • Date: Wed, 24 Apr 2002 21:55:19 -0400

Cryx wrote:
>
> I suppose you could make the socket an instance var and just close the
> file descriptor from another thread. That should cause the system call
> in the subthread to return an error.
>


This is precisely what I have done with success in exactly the same
circumstance in Java.

I think in JDK1.4 there may be a neater way to do it, but certainly its
a viable solution unless there's a cocoa realated gotcha.

--
AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside

I think we finally found the killer app for Flash: animated stick men
_______________________________________________
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.

References: 
 >Re: Terminating a blocked NSThread from outside (From: Cryx <email@hidden>)

  • Prev by Date: Re: How to validate the Undo menu item?
  • Next by Date: Where to put dataSource routines
  • Previous by thread: Re: Terminating a blocked NSThread from outside
  • Next by thread: Hiding the menubar and the dock?
  • Index(es):
    • Date
    • Thread