[parrot/parrot] 0670c4: Protect threads_array from overflow, add Parrot_ge...
GitHub
noreply at github.com
Sun Sep 16 18:40:28 UTC 2012
Branch: refs/heads/threads
Home: https://github.com/parrot/parrot
Commit: 0670c462033615094fce379a97b17500f0ccb9bb
https://github.com/parrot/parrot/commit/0670c462033615094fce379a97b17500f0ccb9bb
Author: Reini Urban <rurban at cpanel.net>
Date: 2012-09-16 (Sun, 16 Sep 2012)
Changed paths:
M include/parrot/thread.h
M src/interp/api.c
M src/scheduler.c
M src/thread.c
Log Message:
-----------
Protect threads_array from overflow, add Parrot_get_num_threads()
Ensure that a manual numthreads argument does not exceed the allocated
MAX_THREADS.
The scheduler needs to know the number of threads.
Let Parrot_set_num_threads return the number of set num_threads, which
might be -1 in case of errors.
Enhance the documentation.
More information about the parrot-commits
mailing list