The stop() function stops the current thread. No arguments are passed to the function. A call to the stop() function does not return.

If you call stop() in an ASL thread, and that thread is in a process that has other threads, the effect is to simply stop that thread. However, when the thread that is being stopped is the only thread that is running, then stopping that thread effectively shuts down the adapter (because the adapter shuts down when there are no more active threads).

The syntax is as follows: