added default constructor and destructor to threadsock