1

implement new list interface (optional)

This commit is contained in:
2022-07-19 23:36:57 +02:00
parent 241699a9bf
commit 18c659c4cc
6 changed files with 83 additions and 47 deletions

View File

@ -70,9 +70,9 @@ void ArrayListDemo::run() {
kout << "Starting..." << endl;
for (unsigned int n = 0; n < 10000; ++n) {
this->list.insert_last(active);
active = list.remove_first();
active = list.remove_first().value_or(-1);
if (this->list.size() != 3) {
if (this->list.size() != 3 || active == -1) {
kout << "ERROR: Thread went missing" << endl;
break;
}