add an assert()

This commit is contained in:
XieHan
2022-05-11 17:00:30 +08:00
parent 87e52404b3
commit 3508061607
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -33,6 +33,7 @@ SeriesWork::SeriesWork(SubTask *first, series_callback_t&& cb) :
this->back = 0;
this->in_parallel = false;
this->canceled = false;
assert(!series_of(first));
first->set_pointer(this);
this->first = first;
this->last = NULL;
+1 -1
View File
@@ -105,7 +105,7 @@ public:
}
public:
/* Call only in tasks' done() implementation. */
/* Call only in tasks' done() implementations. */
SubTask *pop();
public: