Change 14833

ShadauxCat (ShadauxCat)
ShadauxCat committed this change into //guest/ShadauxCat/Sprawl/Mainline under Review 14834
View Review
Download .zip
First checkin of logging module.

Also fixes the following issues:

-Added UpperBound() and LowerBound() to BinaryTree and created appropriate unit tests
-Added Sync() to ThreadManager to force it to run all tasks to completion and not return until it has no tasks left
-Fixed a bug in String::format() where a non-numeric value inside {} would be treated as an empty {}; it now simply prints whatever the value was. (i.e., "{blah}".format(foo) simply returns "{blah}")
-Added Reset() to sprawl::StringBuilder
-Disabled the switch-enum warning flag in gcc because it's stupid and ridiculous that a default case doesn't shut it up
-Made sprawl::Mutex movable. This may turn out to be a bad idea but it enabled keeping them in a map.
-Fixed a name collission between HashMap and BinaryTree; both defined sprawl::collections::detail::UnderlyingType and ::MethodType. Prefixed the ones in BinaryTree with "Tree". This isn't the best solution, but it works for now.

#review-14834
  • Files 12
  • Comments 0
9 edited 3 added 0 deleted
UnitTests/UnitTests_BinaryTree.cpp#2
Loading...
UnitTests/UnitTests_Logging.cpp#1
Loading...
collections/BinaryTree.hpp#3
Loading...
collections/binarytree/BinaryTree_Variadic.hpp#4
Loading...
logging/Logging.cpp#1
Loading...
logging/Logging.hpp#1
Loading...
make.py#10
Loading...
string/String.hpp#11
Loading...
string/StringBuilder.hpp#4
Loading...
threading/mutex.hpp#2
Loading...
threading/threadmanager.cpp#5
Loading...
threading/threadmanager.hpp#3
Loading...
Tip: Use n and p to cycle through the changes.