diff regexParser/threadedSearch.cc @ 262:157f6886ba55

write driver of threadedSearch
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 19:32:18 +0900
parents 3f3c9902bb6d
children 292753bb31e4
line wrap: on
line diff
--- a/regexParser/threadedSearch.cc	Tue Jan 26 14:35:34 2016 +0900
+++ b/regexParser/threadedSearch.cc	Tue Jan 26 19:32:18 2016 +0900
@@ -85,3 +85,11 @@
         tsv.current->stateSkip(tsv);
     }
 }
+
+void threadedSearch(TransitionGeneratorPtr tg, Buffer buff) {
+    TSValue tsv;
+    tsv.buff = buff;
+    tsv.tg = tg;
+    tsv.current = generateTState(tg->stateList);
+    stateSkip(tsv);
+}