Success or failure in ThreadPoolJob


#1

In all my subclasses of ThreadPoolJob so far, I’ve been interested not only if the job completed, but also whether it succeeded or failed…sort of like the return value of the thread function if you see what I mean. I’ve ended up adding a boolean to my subclass with accessors, etc. I could see adding an int instead.

This feels like something that maybe should be in ThreadPoolJob itself. Just a thought

Thanks for the sweet library, and thanks for adding support for non-zero return values from main.

-DB


#2

Hmm - that actually sounds to me more like the kind of thing you’d put in your own sub-class, rather than building it into the threadpool itself…


#3