N
NvrBst
I have a thread pool. Is there a function I can override that all the
ThreadPool work queues call before they terminate? IE so I can just
do something like
override void _threadpoolterminate(...) {
//My 1 line of code "Running[this] = false;"
base(...);
}
Kinda thing...
I have about 50 functions I call with the ThreadPool, and each time
they return I have to do "Running[ThreadPoolItem] = false; return;".
And most the functions return at multiple spots... its gets a little
annoying/messy expecially if I forget to set running to false before a
return.
Thanks.
NB.
ThreadPool work queues call before they terminate? IE so I can just
do something like
override void _threadpoolterminate(...) {
//My 1 line of code "Running[this] = false;"
base(...);
}
Kinda thing...
I have about 50 functions I call with the ThreadPool, and each time
they return I have to do "Running[ThreadPoolItem] = false; return;".
And most the functions return at multiple spots... its gets a little
annoying/messy expecially if I forget to set running to false before a
return.
Thanks.
NB.