purge idle flows
use timer resolution in Flow::isIdle
use const char * instead of char
use std::thread instead of pthread
check if joinable befor join
-todo