)]}'
{
  "commit": "23363af35374726f268ed83216f83c2f628d9d0e",
  "tree": "288cb4bbbfd0b27d037e75aae086af4a7546e43b",
  "parents": [
    "0203a823af086aee948270b2026c89c7777c63e6"
  ],
  "author": {
    "name": "Kirill Makurin",
    "email": "maiddaisuki@outlook.com",
    "time": "Tue Nov 10 23:25:13 2026 +0900"
  },
  "committer": {
    "name": "LIU Hao",
    "email": "lh_mouse@126.com",
    "time": "Thu Nov 12 22:44:07 2026 +0800"
  },
  "message": "winpthreads: affinity.c: port to modern Windows versions\n\nOriginal implementation for `pthread_num_processors_np` and\n`pthread_set_num_processors_np` functions was written before Windows added\nsupport for more than 64 processors and introduced notion of processor groups.\n\nStarting with Windows 7, 64-bit Windows supports more than 64 processors.\n\nIt introduced notion of processor groups; each processor is assigned to\nprocessor group. On system with 64 or fewer processors, there is only one\nprocessor group 0.\n\nBy default, all threads in a process are assigned to processor group 0.\nAny thread can be assigned to any processor group at any point.\n\nStarting with Windows 11, the default behavior was changed so that instead\nof assigning all threads in a process to processor group 0, they can be\nassigned to any processor group; that processor group is referred to as\nthe process\u0027 Primary Group.\n\nBy default, all threads in a process are assigned to that Primary Group.\nThe processor group a thread is assigned to is referred to as\nthe thread\u0027s Primary Group.\n\nThis change updates the implementation to make use of the following functions\nintroduced in Windows 7:\n\n- `GetProcessGroupAffinity`\n- `GetThreadGroupAffinity`\n\nFor pre-Windows 7 systems, these functions are emulated in a way that they\nsimply act as if there is only one processor group 0.\n\nThis change also makes use of `SetThreadAffinityMask`, which is available since\nWindows NT 3.5 and on all Win9x systems. It is emulated for Windows NT 3.1.\n\nSigned-off-by: Kirill Makurin \u003cmaiddaisuki@outlook.com\u003e\nSigned-off-by: LIU Hao \u003clh_mouse@126.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d1326391201c59eeb6ed62e0f9c5c7578168b75e",
      "old_mode": 33188,
      "old_path": "mingw-w64-libraries/winpthreads/src/affinity.c",
      "new_id": "4564121572f3f1d25ce5c8243de8a13b62dc5e66",
      "new_mode": 33188,
      "new_path": "mingw-w64-libraries/winpthreads/src/affinity.c"
    }
  ]
}
