+ else if (!strcmp((const char *) ptr->name, "threads"))
+ {
+ std::string threads_str = yp2::xml::get_text(ptr);
+ int threads = atoi(threads_str.c_str());
+ if (threads < 1)
+ throw yp2::filter::FilterException("Bad value for threads: "
+ + threads_str);
+ m_p->m_no_threads = threads;
+ }