aboutsummaryrefslogtreecommitdiff
path: root/playlist.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-06-01 14:08:56 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-06-01 14:08:56 +0200
commit6decfb1935a95cea07bceeec5de26eb5a47472d5 (patch)
treef2fdb0939c6f1b2e159fa40568fad67ef5e2ae8a /playlist.go
parent1bab32969f6e7bf538a923cf176d2ce2b9c3a092 (diff)
downloadWRMS-6decfb1935a95cea07bceeec5de26eb5a47472d5.tar.gz
WRMS-6decfb1935a95cea07bceeec5de26eb5a47472d5.zip
send events in a total order
Move Connection code to wmrs.go. Introduce a RWMutex to synchronize access to the internal Wrms state. Tag each event when it is broadcast with the next event count. Senders will order the broadcasted events. This guarantees that no obsoltete events are ever delivered.
Diffstat (limited to 'playlist.go')
0 files changed, 0 insertions, 0 deletions