• 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: kEAGAINErr and StateMachines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kEAGAINErr and StateMachines


  • Subject: Re: kEAGAINErr and StateMachines
  • From: Quinn <email@hidden>
  • Date: Fri, 28 Mar 2003 09:18:29 +0000

At 23:25 -0800 27/3/03, Duane Murphy wrote:
Any comments on this approach?

You should only get kEAGAINErr if you're running asynchronously. It's typically generated when OT wants to load a module but can't because it's running at interrupt time. Your suggested approach (when you get the error, schedule a system task to continue your state machine) is correct.

Any gotchas to be aware of?

There's the standard gotcha, which is that if the person who issued the asynch request isn't calling SystemTask while waiting, the system will deadlock. But there really isn't much you can do about that.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: kEAGAINErr and StateMachines (From: "Duane Murphy" <email@hidden>)
 >Re: kEAGAINErr and StateMachines (From: "Duane Murphy" <email@hidden>)

  • Prev by Date: Re: kEAGAINErr and StateMachines
  • Next by Date: re: Open Transport and creating a PPP dial-up connection.
  • Previous by thread: Re: kEAGAINErr and StateMachines
  • Next by thread: Bandwidth Limiting
  • Index(es):
    • Date
    • Thread