initializing static variables in constructor, these have to be static because of the callback and the pthread_create function, c.f. http://www.parashift.com/c++-faq/memfnptr-vs-fnptr.html