Using Core Graphics/ Cocoa, can you draw to a bitmap context from a background thread?
问题 I'm drawing offscreen to a CGContext created using CGBitmapContextCreate , then later generating a CGImage from it with CGBitmapContextCreateImage and drawing that onto my view in drawRect (I'm also drawing some other stuff on top of that - this is an exercise in isolating different levels of variability and complexity). This all works fine when it's all running on the main thread. However one of the motivations for splitting this out this way was so that the offscreen part could be run on a