• 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
How to detect and disable/delay sleep event in cocoa for some critical threads to complete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to detect and disable/delay sleep event in cocoa for some critical threads to complete


  • Subject: How to detect and disable/delay sleep event in cocoa for some critical threads to complete
  • From: Parimal Das <email@hidden>
  • Date: Fri, 16 Oct 2009 11:06:19 +0530

Hi All

When my app is doing some critical I/O transactions with OpenSsl,
And the user is sleeping the machine (just by folding the laptop).
Some of the app threads are hanging

Is there any way in cocoa to do following steps? Also is this logic correct?

1. Detect when a sleep (soft or hard) is issued
2. Delay sleep till my threads come out
3. Then continue to going into sleep.

Please suggest.

Thank you
-Parimal Das
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to detect and disable/delay sleep event in cocoa for some critical threads to complete
      • From: Ken Ferry <email@hidden>
  • Prev by Date: Toolbar with capsule style items (Similiar to Mail)
  • Next by Date: Re: odd behavior with NSError?
  • Previous by thread: Re: Toolbar with capsule style items (Similiar to Mail)
  • Next by thread: Re: How to detect and disable/delay sleep event in cocoa for some critical threads to complete
  • Index(es):
    • Date
    • Thread