summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2023-11-26 20:28:29 -0500
committerBenji Dial <benji6283@gmail.com>2023-11-26 20:28:29 -0500
commit8723fe078180916a6b2f736232e7f5bec2b9674e (patch)
tree474ae9a0cc40a6cbb146fee224544bbe031f76a6 /include
parent920bedec8c2bec3dc9e938a88fc2fe3fb7e49fe1 (diff)
downloadlib94-8723fe078180916a6b2f736232e7f5bec2b9674e.tar.gz
add function to lib94 to remove all warriors; fix crash on removing last warrior in bench
Diffstat (limited to 'include')
-rw-r--r--include/lib94/lib94.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/lib94/lib94.hpp b/include/lib94/lib94.hpp
index 40c9631..63f862e 100644
--- a/include/lib94/lib94.hpp
+++ b/include/lib94/lib94.hpp
@@ -108,6 +108,8 @@ namespace lib94 {
//with the current time, before the first time you call this.
bool init_round(const warrior *const *warriors, size_t count, const number_t *offsets, bool shuffle);
+ void remove_all_warriors();
+
//returns the number of warriors who have at least one process
size_t alive_warrior_count();