)]}' { "commit": "df8f446e3ad47e5148b8c8d8b6e519d3ce29cb9d", "tree": "af7d6b7d6aa3f05f83375de0ca79142ce8a50b99", "parents": [ "446e4318fa79788e09299d5953b5dd428953d14b" ], "author": { "name": "Lasse Collin", "email": "lasse.collin@tukaani.org", "time": "Mon Oct 24 18:51:36 2016 +0300" }, "committer": { "name": "Lasse Collin", "email": "lasse.collin@tukaani.org", "time": "Mon Oct 24 18:51:36 2016 +0300" }, "message": "tuklib_cpucores: Add support for sched_getaffinity().\n\nIt\u0027s available in glibc (GNU/Linux, GNU/kFreeBSD). It\u0027s better\nthan sysconf(_SC_NPROCESSORS_ONLN) because sched_getaffinity()\ngives the number of cores available to the process instead of\nthe total number of cores online.\n\nAs a side effect, this commit fixes a bug on GNU/kFreeBSD where\nconfigure would detect the FreeBSD-specific cpuset_getaffinity()\nbut it wouldn\u0027t actually work because on GNU/kFreeBSD it requires\nusing -lfreebsd-glue when linking. Now the glibc-specific function\nwill be used instead.\n\nThanks to Sebastian Andrzej Siewior for the original patch\nand testing.\n", "tree_diff": [ { "type": "modify", "old_id": "468c2db639ad6897c3f979102c880b697a155be7", "old_mode": 33188, "old_path": "m4/tuklib_cpucores.m4", "new_id": "a2b09a72380cb1b92f3d64d38ab51950cc870a09", "new_mode": 33188, "new_path": "m4/tuklib_cpucores.m4" }, { "type": "modify", "old_id": "e235fd1cedc3262779ad0314a639b9188d02adc4", "old_mode": 33188, "old_path": "src/common/tuklib_cpucores.c", "new_id": "c16e188d53621d098b3e53e0a5d3acb9ef901c3f", "new_mode": 33188, "new_path": "src/common/tuklib_cpucores.c" } ] }