Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
Eric Rahm 3925a960aa Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Eric Rahm 4879ae86f4 Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Matt Woodrow 924056f5e8 Bug 857895 - Only enforce tail dispatch if both source and dest support it. r=bholley 2015-05-14 13:47:42 +12:00
Bobby Holley 22d027c1ad Bug 1162803 - Mirror playback position. r=jww,r=sotaro 2015-05-11 11:16:07 -07:00
Bobby Holley a6a1df6eb5 Bug 1160064 - Do watching/mirroring initialization on the state machine task queue. r=jww
We take this as an opportunity to remove connect-during-initialization. Always
connecting from the owner thread feels like a stronger invariant.
2015-04-30 21:29:49 -07:00
Bobby Holley 1779f7bdee Bug 1160064 - Switch mirror/canonical initialization to happen in the constructor. r=jww
The goal here is to hoist all meaningful watcher/mirror/canonical manipulation
onto the owner thread. But since that must necessarily happen asynchronously,
we need to make sure that canonicals are in a sane state immediately upon
creation, since otherwise a mirror from another thread may attempt to connect to
a not-yet-initialized canonical.
2015-04-30 21:29:48 -07:00
Bobby Holley a1d3d9cfba Bug 1159987 - Let consumers declare Mirror<T> rather than Mirror<T>::Holder. r=jww 2015-04-30 12:46:45 -07:00
Bobby Holley cb346fb2da Bug 1159987 - Let consumers declare Canonical<T> rather than Canonical<T>::Holder. r=jww
The current mechanism is slightly more pure from an implementation-perspective,
but a lot more confusing for consumers. After some thought, I think we should flip
them around.

This patch does Canonical - I'll do Mirror in the next patch.
2015-04-30 12:46:43 -07:00
Bobby Holley 5d61139eec Bug 1157803 - Clean up Canonical assigment to avoid accidentally tripping the default operator= implementation. r=jww 2015-04-28 21:56:20 -07:00
Bobby Holley 9a2aac55ff Bug 1157803 - Const-correct some methods. r=jww 2015-04-28 21:56:19 -07:00
Bobby Holley 201b659dcf Bug 1157803 - Don't auto-disconnect mirrors when the holder is destroyed off-owner-thread. r=jww
Another consequence of the MDSM's thread model.
2015-04-28 21:56:19 -07:00
Bobby Holley 913a82dcb8 Bug 1157803 - Support connect-during-initialization for mirrors. r=jww
The MDSM is constructed and destroyed on the main thread, but runs most
everything else on the task queue. So we need to bend the rules a bit here
to conveniently connect its mirrors during construction.
2015-04-28 21:56:18 -07:00
Bobby Holley 7bf0120925 Bug 1157803 - Loosen dispatch requirements for state mirroring. r=jww 2015-04-28 21:56:18 -07:00
Bobby Holley b012a0a6f0 Bug 1144481 - Implement state mirroring machinery. r=jww 2015-04-23 11:55:13 -07:00