[haiku-bugs] Re: [Haiku] #11852: BTimeSource should be cleaned up

  • From: "Barrett" <trac@xxxxxxxxxxxx>
  • Date: Wed, 01 Apr 2015 09:59:02 -0000

#11852: BTimeSource should be cleaned up
------------------------------+----------------------------
Reporter: Barrett | Owner: axeld
Type: enhancement | Status: new
Priority: normal | Milestone: R1
Component: Kits/Media Kit | Version: R1/Development
Resolution: | Keywords: BTimeSource
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
------------------------------+----------------------------

Comment (by Barrett):

I have reflected a bit about the possible solution of the "XXX" things in
BTimeSource which it seems the last thing to do to close this ticket, and
i have the following plans. Actually, BMediaRoster and friends are writing
to the node port to get it's timesource. The problem is that the node has
crashed at this point and in the media_server there's not trace of it's
timesource. I'm planning to resolve it by adding a member to the
registered_node struct to allow to trace the node timesource. This imply
to update this field every time the BTimeSource change.

We already have some facilities to detect when a team crashed
(CleanupTeam()) and in this place i would like to add the code to query
the time source (if it's already up) and remove the crashed node.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11852#comment:7>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: