Skip to content
Commit 4d25c34e authored by Ell's avatar Ell
Browse files

gegl-tile: make tile COW lock-free

Copy-on-write for tile data is currently implemented using a shared
linked list among the cloned tiles, guarded by a global mutex.
Replace the list with a shared counter, which is manipulated
atomically, without a lock.

For tiles created using gegl_tile_new(), and for uncloned tiles,
the counter shares the same buffer as the tile data, so no
additional allocation is required.  Tiles created using
gegl_tile_new_bare() get a separately-allocated counter.
parent a0f3d035
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment