Loading...
Searching...
No Matches
TripleBufferIndex.hpp File Reference

Lock-free slot rotation behind TextureShare's producer/consumer pair. More...

Detailed Description

Lock-free slot rotation behind TextureShare's producer/consumer pair.

Three slots: 0, 1, 2

  • Producer writes to 'write' slot
  • When done, producer swaps 'write' with 'ready'
  • Consumer swaps 'ready' with 'read' when it wants new data
  • Consumer reads from 'read' slot

Producer and consumer therefore never access the same slot simultaneously.

Go to the source code of this file.

Classes

class  score::gfx::TripleBufferIndex
 

Namespaces

namespace  score
 Base toolkit upon which the software is built.
 
namespace  score::gfx
 Graphics rendering pipeline for ossia score.