]> git.sesse.net Git - cubemap/commit
Add Metacube headers in add_data_deferred(), not add_data().
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Apr 2013 13:56:57 +0000 (15:56 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Apr 2013 13:56:57 +0000 (15:56 +0200)
commite0b47eba2f5ec1aca1d02adc9fb4ffc7293d5c0f
treea63938e0da9d9299b5e61e37802ea0245f7ec271
parent7c26826d3c485f4f18a6c427f520dc470e68f94a
Add Metacube headers in add_data_deferred(), not add_data().

This fixes a problem where Metacube blocks are not deterministically added
for each add_data() call (because they would only be added for each call to
process_queued_data()), causing the different servers to go out of sync.

Also moved most of this logic to Stream, where it seems more appropriate
(even though the mutexes are a bit odd now).
server.cpp
server.h
stream.cpp
stream.h