Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » BUG: "Close();" does not!
Re: BUG: "Close();" does not! [message #41910 is a reply to message #41899] |
Wed, 05 February 2014 13:45 |
Shire
Messages: 41 Registered: September 2006 Location: Russia, Yamal peninsula
|
Member |
|
|
Quote: |
Having each thread close itself from INSIDE that thread was the only positive and error free method that I found.
|
This is true, normally, thread must do proper uninitialization by itself. Any outside intervention knows nothing about thread stack objects (and allocated resources) and terminating thread is chance of memory leak.
You can tell thread about exiting via bool flag. There is global flag, managed by Thread::ShutdownThreads, or you can create thread own flag.
|
|
|
Goto Forum:
Current Time: Fri May 10 20:49:42 CEST 2024
Total time taken to generate the page: 0.01848 seconds
|