[haiku-commits] Re: haiku: hrev50183 - src/servers/media src/kits/media headers/private/media headers/os/media

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 4 Apr 2016 10:25:20 +0200

Il 04/apr/2016 07:30, "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx> ha scritto:


Am 04/04/2016 um 01:29 schrieb b.vitruvio@xxxxxxxxx:

53c3fa513774: Introduce functionality for syncing with the media services

   * The global synchro semaphore is provided with the purpose of
   being used to avoid threads lock up when the media_server is in
   an undefined state. There's still room for improvements.
   * BMediaRoster::SyncToServices lock up on a semaphore until
   the multi_audio correctly connected to the mixer.


Besides the fact that "global synchro" is really badly named, how is it
supposed to work exactly?

I know at least one project using this name.
If the media_server IsRunning() but the semaphore is still valid then the
mixer didn't connect, teams might want to synchronize to that. If you see
some issue, please point it out, would make everyone life easier :-).

Other related posts: