first cut at making GenericThread use QThread instead of pthread