Removed auto_ptr wrapping of _sampling_thread