exit_app


Description:

public static void exit_app (int val)

Waits for all the threads to complete and then kills the threading system and exits the application.

You can call it only from the main thread.