79526235

Date: 2025-03-21 17:47:21
Score: 1.5
Natty:
Report link

There is an interesting way to create a GCD queue that can be both concurrent and serial, to say allow thread safe "reads" from a structure to occur concurrently in any order, but only permit "write" to occur synchronously after all queued reads have completed. For example to access items where reads may actually take some time to search the structure. But writes must occur serially to prevent altering the structure while a read is taking place. Refer to the Related item on "barrier" for how to do this.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: shkeyser