Added safety assert to prevent threadmanager to be started with negative number of threads.
Added safety assert to prevent threadmanager to be started with negative number of threads.

tillenius/superglue,tillenius/superglue,tillenius/superglue