)]}'
{
  "commit": "04ec40f5bcdd3966c1bfac7e64a8bacfdc9671bd",
  "tree": "6c7a241b8ae360e28bce24cb913e0f15a8fd8793",
  "parents": [
    "c3478beb2938918fd67e97ee9cb4e4fc2e36ce45"
  ],
  "author": {
    "name": "Antonin Décimo",
    "email": "antonin@tarides.com",
    "time": "Mon Oct 21 13:26:23 2024 +0000"
  },
  "committer": {
    "name": "LIU Hao",
    "email": "lh_mouse@126.com",
    "time": "Tue Oct 29 22:39:01 2024 +0800"
  },
  "message": "winpthreads: also use SetThreadDescription to set thread name\n\nUsing SetThreadDescription has the advantage that on recent Visual\nStudio / Windows, the thread name is always available regardless of\nwhether a debugger was attached, is also available in crash dumps, and\nto other tools.\n\nQuoting MSDN at Set a thread name in C/C++:\nhttps://learn.microsoft.com/en-us/visualstudio/debugger/tips-for-debugging-threads?view\u003dvs-2022\u0026tabs\u003dcsharp#set-a-thread-name-in-cc\n\n\u003e There are two ways to set a thread name. The first is via the\n\u003e SetThreadDescription function. The second is by throwing a\n\u003e particular exception while the Visual Studio debugger is attached to\n\u003e the process. Each approach has benefits and caveats. The use of\n\u003e SetThreadDescription is supported starting in Windows 10 version\n\u003e 1607 or Windows Server 2016.\n\u003e\n\u003e It\u0027s worth noting that both approaches can be used together, if\n\u003e desired, since the mechanisms by which they work are independent of\n\u003e each other.\n\nSigned-off-by: Antonin Décimo \u003cantonin@tarides.com\u003e\nSigned-off-by: LIU Hao \u003clh_mouse@126.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b56e8a1b851a3b7cd768be64cc3243a5fbd8bab6",
      "old_mode": 33188,
      "old_path": "mingw-w64-libraries/winpthreads/src/misc.c",
      "new_id": "c426f59cbe42ff84432c38a1defda60620935759",
      "new_mode": 33188,
      "new_path": "mingw-w64-libraries/winpthreads/src/misc.c"
    },
    {
      "type": "modify",
      "old_id": "edefb0d549440979832f6063c7963a9ce1ba9bcc",
      "old_mode": 33188,
      "old_path": "mingw-w64-libraries/winpthreads/src/misc.h",
      "new_id": "a853dd085c469942fe03a8facbcbafca77f273a6",
      "new_mode": 33188,
      "new_path": "mingw-w64-libraries/winpthreads/src/misc.h"
    },
    {
      "type": "modify",
      "old_id": "3fc5cedf1fe1e2e9669db8b7dee9c4655cdd8344",
      "old_mode": 33188,
      "old_path": "mingw-w64-libraries/winpthreads/src/thread.c",
      "new_id": "68858cfa6363082e48df8039c0c6a07103f6e8fe",
      "new_mode": 33188,
      "new_path": "mingw-w64-libraries/winpthreads/src/thread.c"
    }
  ]
}
