Stops the threads.
void stop();
This function stops the threads as soon as possible. As a result of calling stop(), pending function objects may be never be invoked.
stop()