}
```</pre>
</div>
-<div created="20141130160556556" creator="lh3" modified="20150906214636521" modifier="lh3" tags="[[Library Documentations]]" title="Kthread: simple threading models">
+<div created="20141130160556556" creator="lh3" modified="20150906215331494" modifier="lh3" tags="[[Library Documentations]]" title="Kthread: simple threading models">
<pre>!!Synopsis
* Functionality: simple multi-threading models.
} else if (step == 1) { // step 1: reverse lines
kt_for(p->n_threads, worker_for, in, ((step_t*)in)->n_lines);
return in;
- } else if (step == 2) { // step 3: write the buffer to output
+ } else if (step == 2) { // step 2: write the buffer to output
step_t *s = (step_t*)in;
while (s->n_lines > 0) {
fputs(s->lines[--s->n_lines], stdout);