mirror of
https://github.com/sogou/workflow.git
synced 2026-10-28 19:19:22 +08:00
add an assert()
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -105,7 +105,7 @@ public:
|
||||
}
|
||||
|
||||
public:
|
||||
/* Call only in tasks' done() implementation. */
|
||||
/* Call only in tasks' done() implementations. */
|
||||
SubTask *pop();
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user