Change 16153

ShadauxCat (ShadauxCat)
ShadauxCat committed this change into //guest/ShadauxCat/Sprawl/Mainline under Review 16154
View Review
Download .zip
- Changed compile-time-bound strings to be sprawl::StringLiteral instead of sprawl::String.
(Was going to do raw char*, but StringLiteral allows the length of the string to be baked in at compile time and thus avoids costly strlen() operations.)
- Split Event::WaitMultiple() into Event::WaitAny() and Event::WaitAll()
- Added Event::NotifyAll()
- Added variadic template functions to make WaitAny(), WaitAll(), and NotifyAll() easier to work with when the list of events is known at compile time (i.e., Event::WaitAny(event1, event2, event3); to wait for all thre events instead of having to construct the EventGroup manually - also ensures EventGroup construction eficiency by constructing it with the proper capacity for the number of events being waited on)

#review-16154
  • Files 7
  • Comments 0
7 edited 0 added 0 deleted
UnitTests/UnitTest_Event.cpp#2
Loading...
logging/Logging.cpp#5
Loading...
logging/Logging.hpp#6
Loading...
threading/event.hpp#3
Loading...
threading/event_linux.cpp#2
Loading...
threading/event_osx.cpp#4
Loading...
threading/event_windows.cpp#3
Loading...
Tip: Use n and p to cycle through the changes.