I am writing an app. There are plugins which DL resource from the net. If the user would like to quit i would not like any DLs to start but i would like DLs in progress to continue until done. After they stop i would gracefully quit.
How do i find out if a thread is in a middle of a DL or just sleeping? The actual download resource function is in my base class and is not virtual so i can write code that says if its in progress but thats besides the point. How do i actually pass info to the main thread to say if its sleeping and will terminate VS in progress of a download?