lundi 10 mars 2014

Is it safe to modify a C array concurrently in Objective-C?


Vote count:

0




I am exploring concurrent speedup on iOS and just getting started with Objective-C concurrent programming. I am starting with a simple example of grayscaling an image (I know I can more efficiently do this with OpenGL but I think it is a good enough large data-set example to play with).


Basically I am going to split up the image into different quadrants and queue up a set of blocks each with their own quadrant to compute. I am storing the data in a simple UInt8 *imageData; array and I am wondering if it will be okay with me accessing this array concurrently. If not is there another data structure which will allow me to do this?



asked 1 min ago

Alex

978





Aucun commentaire:

Enregistrer un commentaire