[haiku-commits] Re: haiku: hrev50901 - src/kits/media

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 26 Jan 2017 23:59:11 +0100

Hey,

On Thu, Jan 26, 2017 at 11:30 PM, Julian Harnath <
julian.harnath@xxxxxxxxxxxxxx> wrote:

Hey,


On 26.01.2017 22:47, Dario Casalinuovo wrote:

Since this index is modified only locally and it's not supposed to be
visible to the client threads, a normal increment would be fine.


fBuf is a shared memory area. This index inside it is written in
BTimeSource::PublishTime(), running in a time source context (e.g. the
multi audio node thread). It is read in BTimeSource::GetTime(), which is
used by e.g. BTimeSource::PerformanceTimeFor(), which is called by other
threads in client applications.


Seriously, did you read the code?

Other related posts: