Thread safety of UIKit graphics functions: SDK documentation is contradictory

Originator:nikolai.ruhe
Number:rdar://11278619 Date Originated:19-Apr-2012 10:46 AM
Status:Duplicate of 9987193 Resolved:
Product:iPhone SDK Product Version:5.1
Classification:Other Bug Reproducible:N/A
 
Summary:
It's not clear if UIKit graphics functions are background thread safe or not.

For each of the graphics functions the current UIKit documentation [1] says explicitly: "You should call this function from the main thread of your application only.", for instance `UIGraphicsGetCurrentContext`.

Yet the "What's new in iOS 4.0" Document [2] says: "Drawing to a graphics context in UIKit is now thread-safe. [...]".

Steps to Reproduce:
N/A

Expected Results:
Consistent documentation

Actual Results:
Contradictory documentation

Regression:
N/A

Notes:
N/A

References:

[1] http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/c/func/UIGraphicsGetCurrentContext

[2] http://developer.apple.com/library/ios/releasenotes/General/WhatsNewIniPhoneOS/Articles/iPhoneOS4.html#//apple_ref/doc/uid/TP40009559-SW29

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!