• 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
Is CGImage... thread-safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is CGImage... thread-safe?


  • Subject: Is CGImage... thread-safe?
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Tue, 26 May 2020 23:10:26 +0200

I've just had a crash in
   CGImageSourceCreateThumbnailAtIndex( new_image, 0, imageOpts );
The new_image and imageOpts were created/assigned just a few lines earlier in
the code.
(and in the debugger they appear to be non-null.)

So I was wondering if CGImageSourceCreateThumbnailAtIndex() is thread-safe.
Maybe, it would be more correct to ask whether the CGImage framework is
re-entrant.

The only other CGImage functions I am using, as far as I can see,
are CGImageRelease() and layer.content = image.
(The latter is not directly a CGImage function, but it might use them.)
These two functions might get called in a different thread -
but, of course, never on objects I pass into
CGImageSourceCreateThumbnailAtIndex() !


Any ideas as to why I am experiencing the crash, will be appreciated.

Best regards, Gabriel


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Is CGImage... thread-safe?
      • From: Steve Mills via Cocoa-dev <email@hidden>
  • Prev by Date: Re: Screensaver can capture mouse events under Catalina
  • Next by Date: Re: Is CGImage... thread-safe?
  • Previous by thread: Re: Screensaver can capture mouse events under Catalina
  • Next by thread: Re: Is CGImage... thread-safe?
  • Index(es):
    • Date
    • Thread