[cairo] cairo_t thread safety

Baldeva, Arpit abaldeva at ea.com
Wed Apr 23 12:46:41 PDT 2014


Hi,

Is cairo+pixman threadsafe with respect to each individual cairo context even if I compile cairo with CAIRO_NO_MUTEX? I mean I can ensure that multiple threads are not calling cairo API for the same cairo_t concurrently. However, I'd like to concurrently call different cairo APIs on different cairo_t. Is this supported? 

My use case will be to divide a large surface into smaller segments. So instead of one cairo_t, I end up with say 4 cairo_t. Then, paint those 4 cairo_t from individual threads in parallel.

Appreciate any responses.

--Arpit


More information about the cairo mailing list