aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/initialize.c
diff options
context:
space:
mode:
authorPascal Obry <obry@adacore.com>2007-12-13 11:18:44 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2007-12-13 11:18:44 +0100
commitb41ab480565d08ba5535f219e9f607e15d9c47e0 (patch)
treeaab7a215c62fc85b658d90381374889f961afcaa /gcc/ada/initialize.c
parentaa4095c911de99a3f5bec44da96299ec8945f88a (diff)
downloadgcc-b41ab480565d08ba5535f219e9f607e15d9c47e0.zip
gcc-b41ab480565d08ba5535f219e9f607e15d9c47e0.tar.gz
gcc-b41ab480565d08ba5535f219e9f607e15d9c47e0.tar.bz2
adaint.c (__gnat_pthread_setaffinity_np): New routine.
2007-12-06 Pascal Obry <obry@adacore.com> * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy version is provided for older GNU/Linux distribution not supporting thread affinity sets. * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf call. (bit_field): New packed boolean type used by cpu_set_t. (cpu_set_t): New type corresponding to the C type with the same name. Note that on the Ada side we use a bit field array for the affinity mask. There is not need for the C macro for setting individual bit. (pthread_setaffinity_np): New imported routine. * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is no null. (Create_Task): Set the processor affinity mask if information is present. * s-tasinf-linux.ads, s-tasinf-linux.adb: New files. From-SVN: r130812
Diffstat (limited to 'gcc/ada/initialize.c')
0 files changed, 0 insertions, 0 deletions