Simplify Beast:

* Remove asio HTTP classes
 * Remove beast::File, beast::String, beast::Stream, beast::Array,
   beast::MemoryBlock, beast::CriticalSection and other unused
   classes.
 * Remove unused platform-specific code.
 * Reduce Beast custom assert and debugging helper macros.
This commit is contained in:
Nik Bougalis
2016-01-20 12:32:02 -08:00
parent 921b34eafd
commit 958b3a1dc0
117 changed files with 77 additions and 19036 deletions

View File

@@ -20,6 +20,7 @@
#include <beast/utility/PropertyStream.h>
#include <beast/unit_test/suite.h>
#include <cassert>
#include <limits>
#include <iostream>
@@ -197,7 +198,7 @@ void PropertyStream::Source::add (Source& source)
std::lock_guard<std::recursive_mutex> lk1(lock_, std::adopt_lock);
std::lock_guard<std::recursive_mutex> lk2(source.lock_, std::adopt_lock);
bassert (source.parent_ == nullptr);
assert (source.parent_ == nullptr);
children_.push_back (source.item_);
source.parent_ = this;
}
@@ -208,7 +209,7 @@ void PropertyStream::Source::remove (Source& child)
std::lock_guard<std::recursive_mutex> lk1(lock_, std::adopt_lock);
std::lock_guard<std::recursive_mutex> lk2(child.lock_, std::adopt_lock);
bassert (child.parent_ == this);
assert (child.parent_ == this);
children_.erase (
children_.iterator_to (
child.item_));