#include "nodestructor.hfa" int main(int, char*[]) { MyThread ahhh; // call destructor after // waits for its own destructor to be called }