Fix logical set_num_threads bug. Check the input
Fix logical set_num_threads bug. Check the input

We need to check the input. num_threads is required to be -1 in this state.

tkob/parrot,FROGGS/parrot,FROGGS/parrot,tkob/parrot,parrot/parrot,tkob/parrot,tkob/parrot,FROGGS/parrot,FROGGS/parrot,youprofit/parrot,parrot/parrot,tkob/parrot,FROGGS/parrot,youprofit/parrot,FROGGS/parrot,youprofit/parrot,tkob/parrot,parrot/parrot,youprofit/parrot,youprofit/parrot,tkob/parrot,FROGGS/parrot,youprofit/parrot,youprofit/parrot,FROGGS/parrot,youprofit/parrot,parrot/parrot,tkob/parrot,parrot/parrot