Merge remote-tracking branch 'origin/master' into threads
Verify that at least 2 threads are created

For a single CPU default to 4 created threads.
For Parrot_set_num_threads verify at least 2, one is needed for sleep
More threads sanity checks

On single-cpu windows I had the case of NULL candidate, when looking
for the thread with the fewest tasks.
Bail out with "Could not find a free thread" when no free thread is found, even
when Parrot_thread_get_free_threads_array_index() returned -1 (all threads allocated).
Tune num_threads

Via API the minimum num_threads is 2. One for sleep.

Via default Parrot_get_num_cpus() use 4 as default, if
<= 2 cpu's are found.
This leaves dual-cpu's with a bit more threads.
fix t/src/threads_io.t for windows

stdin.readline() now returns input\r\n on windows.
Merge branch 'threads' of git@github.com:parrot/parrot into threads
[codingstd] No trailing whitespace.
[codingstd] No hard tabs.
[codingstd] No space between C function name and following open parenthesis.
[codingstd] Follow C-indent standard inside #ifdef.
[codingstd] Correct documentation of C function.
[codingstd] No space after opening parenthesis.
Merge remote-tracking branch 'origin/master' into threads
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.
Merge branch 'master' into threads
Make g++ happy on the threads branch
Revert "Make g++ happy on the threads branch"

This reverts commit 22446667e8dbd29c9342f9402f8766f3dc295437.
Wrong fix, see 02eece1 instead.
Fix target_interp in pcc_unproxy_context detected by g++

Parrot_Interp is a ptr to the interp struct already. This code section
was never triggered in any testcase. I am trying to find a testcase for
this.
Make the coding standard tests happy whilst improving a variable name
[t] Make the coding standard tests happy