| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/commits(/*name) |
| route-controller | commits |
| route-action | show |
| fetch-nonce | v2:4d748bb4-a83c-1ac2-00a7-2c1a30b94978 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | E624:31FE5:609EC3:7DBC6D:6B026528 |
| html-safe-nonce | 75f4b1ea6a3cf68f638919965041ec9a929a5e3d8738991745d7cad5f8cc4f26 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjI0OjMxRkU1OjYwOUVDMzo3REJDNkQ6NkIwMjY1MjgiLCJ2aXNpdG9yX2lkIjoiMjQ1NTc5MzU5OTM1MTI1MjI2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e51a5be5c336f2be227c54f3e9b1b276b0a4749b770d697980b1b980341a60a4 |
| hovercard-subject-tag | repository:81598961 |
| github-keyboard-shortcuts | repository,commit-list,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///commits/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/commits/3.14/Python/lock.c |
| twitter:image | https://opengraph.githubassets.com/2f8962392b985311d7b4f20f3e4cd4efc8228ee7d643bae1a8b573ef03d05ac6/python/cpython |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f8962392b985311d7b4f20f3e4cd4efc8228ee7d643bae1a8b573ef03d05ac6/python/cpython |
| og:image:alt | The Python programming language. Contribute to python/cpython development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | commits |
| Skip to content | https://github.com/python/cpython/commits/3.14/Python/lock.c#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fcommits%2F3.14%2FPython%2Flock.c |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fcommits%2F3.14%2FPython%2Flock.c |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fcommits%2Fshow&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/commits/3.14/Python/lock.c |
| Reload | https://github.com/python/cpython/commits/3.14/Python/lock.c |
| Reload | https://github.com/python/cpython/commits/3.14/Python/lock.c |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| cpython | https://github.com/python/cpython/commits |
| Python | https://github.com/python/cpython/commits/3.14/Python |
| lock.c | https://github.com/python/cpython/commits/3.14/Python/lock.c |
| 3.14 | https://github.com/python/cpython/tree/3.14 |
| [3.14] gh-158973: Reset the warnings lock after fork in the child (gh-158974) (gh-159615) | https://github.com/python/cpython/commit/84990b5b80589415f173a4c3fc6d86e126da1fc3 |
| nascheme | https://github.com/python/cpython/commits?author=nascheme |
| ngoldbaum | https://github.com/python/cpython/commits?author=ngoldbaum |
| 84990b5 | https://github.com/python/cpython/commit/84990b5b80589415f173a4c3fc6d86e126da1fc3 |
| https://github.com/python/cpython/blob/84990b5b80589415f173a4c3fc6d86e126da1fc3/Python/lock.c |
| https://github.com/python/cpython/tree/84990b5b80589415f173a4c3fc6d86e126da1fc3 |
| [3.14] gh-148820: Fix _PyRawMutex use-after-free on spurious semaphore wakeup (gh-148852) (#148884) | https://github.com/python/cpython/commit/e5d554168337fc53f4fd5ff0dbeb7c3460ce80db |
| https://github.com/colesbury |
| colesbury | https://github.com/python/cpython/commits?author=colesbury |
| e5d5541 | https://github.com/python/cpython/commit/e5d554168337fc53f4fd5ff0dbeb7c3460ce80db |
| https://github.com/python/cpython/blob/e5d554168337fc53f4fd5ff0dbeb7c3460ce80db/Python/lock.c |
| https://github.com/python/cpython/tree/e5d554168337fc53f4fd5ff0dbeb7c3460ce80db |
| [3.14] gh-134009: Expose `PyMutex_IsLocked` in the public C API (gh-134365) (#136971) | https://github.com/python/cpython/commit/8e43b130f7b27657a8bb775e398c0dce325b4741 |
| hugovk | https://github.com/python/cpython/commits?author=hugovk |
| colesbury | https://github.com/python/cpython/commits?author=colesbury |
| 8e43b13 | https://github.com/python/cpython/commit/8e43b130f7b27657a8bb775e398c0dce325b4741 |
| https://github.com/python/cpython/blob/8e43b130f7b27657a8bb775e398c0dce325b4741/Python/lock.c |
| https://github.com/python/cpython/tree/8e43b130f7b27657a8bb775e398c0dce325b4741 |
| [3.14] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with zero timeout (gh-135872) (gh-135946) | https://github.com/python/cpython/commit/80fc62f8af957fe77c8bcf7936a9b2df920671e3 |
| miss-islington | https://github.com/python/cpython/commits?author=miss-islington |
| jtibbertsma | https://github.com/python/cpython/commits?author=jtibbertsma |
| 80fc62f | https://github.com/python/cpython/commit/80fc62f8af957fe77c8bcf7936a9b2df920671e3 |
| https://github.com/python/cpython/blob/80fc62f8af957fe77c8bcf7936a9b2df920671e3/Python/lock.c |
| https://github.com/python/cpython/tree/80fc62f8af957fe77c8bcf7936a9b2df920671e3 |
| gh-111178: Fix function signatures to fix undefined behavior (#131191) | https://github.com/python/cpython/commit/a5776639c8fde8b3b7c90821ab78ddb64130f4c0 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| a577663 | https://github.com/python/cpython/commit/a5776639c8fde8b3b7c90821ab78ddb64130f4c0 |
| https://github.com/python/cpython/blob/a5776639c8fde8b3b7c90821ab78ddb64130f4c0/Python/lock.c |
| https://github.com/python/cpython/tree/a5776639c8fde8b3b7c90821ab78ddb64130f4c0 |
| gh-131082: Add missing guards for WIN32_LEAN_AND_MEAN (#131044) | https://github.com/python/cpython/commit/de8818ae233b8e7722aa5d6f91d4b5a04bd039df |
| https://github.com/maxbachmann |
| maxbachmann | https://github.com/python/cpython/commits?author=maxbachmann |
| de8818a | https://github.com/python/cpython/commit/de8818ae233b8e7722aa5d6f91d4b5a04bd039df |
| https://github.com/python/cpython/blob/de8818ae233b8e7722aa5d6f91d4b5a04bd039df/Python/lock.c |
| https://github.com/python/cpython/tree/de8818ae233b8e7722aa5d6f91d4b5a04bd039df |
| gh-125139: use `_PyRecursiveMutex` in `_thread.RLock` (#125144) | https://github.com/python/cpython/commit/67f6e08147bc005e460d82fcce85bf5d56009cf5 |
| https://github.com/kumaraditya303 |
| kumaraditya303 | https://github.com/python/cpython/commits?author=kumaraditya303 |
| 67f6e08 | https://github.com/python/cpython/commit/67f6e08147bc005e460d82fcce85bf5d56009cf5 |
| https://github.com/python/cpython/blob/67f6e08147bc005e460d82fcce85bf5d56009cf5/Python/lock.c |
| https://github.com/python/cpython/tree/67f6e08147bc005e460d82fcce85bf5d56009cf5 |
| gh-121368: Fix seq lock memory ordering in _PyType_Lookup (#121388) | https://github.com/python/cpython/commit/1d3cf79a501a93a7a488fc75d4db3060c5ee7d1a |
| https://github.com/colesbury |
| colesbury | https://github.com/python/cpython/commits?author=colesbury |
| 1d3cf79 | https://github.com/python/cpython/commit/1d3cf79a501a93a7a488fc75d4db3060c5ee7d1a |
| https://github.com/python/cpython/blob/1d3cf79a501a93a7a488fc75d4db3060c5ee7d1a/Python/lock.c |
| https://github.com/python/cpython/tree/1d3cf79a501a93a7a488fc75d4db3060c5ee7d1a |
| gh-117511: Make PyMutex public in the non-limited API (#117731) | https://github.com/python/cpython/commit/3af7263037de1d0ef63b070fc7bfc2cf042eaebe |
| https://github.com/colesbury |
| colesbury | https://github.com/python/cpython/commits?author=colesbury |
| 3af7263 | https://github.com/python/cpython/commit/3af7263037de1d0ef63b070fc7bfc2cf042eaebe |
| https://github.com/python/cpython/blob/3af7263037de1d0ef63b070fc7bfc2cf042eaebe/Python/lock.c |
| https://github.com/python/cpython/tree/3af7263037de1d0ef63b070fc7bfc2cf042eaebe |
| gh-117657: Fix TSAN race involving import lock (#118523) | https://github.com/python/cpython/commit/e21057b99967eb5323320e6d1121955e0cd2985e |
| https://github.com/colesbury |
| colesbury | https://github.com/python/cpython/commits?author=colesbury |
| e21057b | https://github.com/python/cpython/commit/e21057b99967eb5323320e6d1121955e0cd2985e |
| https://github.com/python/cpython/blob/e21057b99967eb5323320e6d1121955e0cd2985e/Python/lock.c |
| https://github.com/python/cpython/tree/e21057b99967eb5323320e6d1121955e0cd2985e |
| gh-110850: Remove _PyTime_TimeUnchecked() function (#118552) | https://github.com/python/cpython/commit/aa61f8bfcf2584dd8345f1f9a07e240100b79192 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| aa61f8b | https://github.com/python/cpython/commit/aa61f8bfcf2584dd8345f1f9a07e240100b79192 |
| https://github.com/python/cpython/blob/aa61f8bfcf2584dd8345f1f9a07e240100b79192/Python/lock.c |
| https://github.com/python/cpython/tree/aa61f8bfcf2584dd8345f1f9a07e240100b79192 |
| gh-118332: Fix deadlock involving stop the world (#118412) | https://github.com/python/cpython/commit/b2c3b70c7102197e4505e6cd69722dc508527d22 |
| https://github.com/colesbury |
| colesbury | https://github.com/python/cpython/commits?author=colesbury |
| b2c3b70 | https://github.com/python/cpython/commit/b2c3b70c7102197e4505e6cd69722dc508527d22 |
| https://github.com/python/cpython/blob/b2c3b70c7102197e4505e6cd69722dc508527d22/Python/lock.c |
| https://github.com/python/cpython/tree/b2c3b70c7102197e4505e6cd69722dc508527d22 |
| gh-117657: Quiet erroneous TSAN reports of data races in `_PySeqLock` (#117955) | https://github.com/python/cpython/commit/0d29302155f49d4d5c7fa34a658ad5a97dd013a2 |
| https://github.com/mpage |
| mpage | https://github.com/python/cpython/commits?author=mpage |
| 0d29302 | https://github.com/python/cpython/commit/0d29302155f49d4d5c7fa34a658ad5a97dd013a2 |
| https://github.com/python/cpython/blob/0d29302155f49d4d5c7fa34a658ad5a97dd013a2/Python/lock.c |
| https://github.com/python/cpython/tree/0d29302155f49d4d5c7fa34a658ad5a97dd013a2 |
| gh-114271: Fix race in `Thread.join()` (#114839) | https://github.com/python/cpython/commit/33da0e844c922b3dcded75fbb9b7be67cb013a17 |
| 33da0e8 | https://github.com/python/cpython/commit/33da0e844c922b3dcded75fbb9b7be67cb013a17 |
| https://github.com/python/cpython/blob/33da0e844c922b3dcded75fbb9b7be67cb013a17/Python/lock.c |
| https://github.com/python/cpython/tree/33da0e844c922b3dcded75fbb9b7be67cb013a17 |
| gh-114271: Make `_thread.ThreadHandle` thread-safe in free-threaded builds (GH-115190) | https://github.com/python/cpython/commit/9e88173d363fb22c2c7bf3da3a266817db6bf24b |
| https://github.com/mpage |
| mpage | https://github.com/python/cpython/commits?author=mpage |
| 9e88173 | https://github.com/python/cpython/commit/9e88173d363fb22c2c7bf3da3a266817db6bf24b |
| https://github.com/python/cpython/blob/9e88173d363fb22c2c7bf3da3a266817db6bf24b/Python/lock.c |
| https://github.com/python/cpython/tree/9e88173d363fb22c2c7bf3da3a266817db6bf24b |
| gh-110850: Rename internal PyTime C API functions (#115734) | https://github.com/python/cpython/commit/52d14775665a6fde518ee3da88a73f39b09d993f |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 52d1477 | https://github.com/python/cpython/commit/52d14775665a6fde518ee3da88a73f39b09d993f |
| https://github.com/python/cpython/blob/52d14775665a6fde518ee3da88a73f39b09d993f/Python/lock.c |
| https://github.com/python/cpython/tree/52d14775665a6fde518ee3da88a73f39b09d993f |
| gh-110850: Cleanup pycore_time.h includes (#115724) | https://github.com/python/cpython/commit/d207c7cd5a8c0d3e5f6c5eb947243e4afcd718b0 |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| d207c7c | https://github.com/python/cpython/commit/d207c7cd5a8c0d3e5f6c5eb947243e4afcd718b0 |
| https://github.com/python/cpython/blob/d207c7cd5a8c0d3e5f6c5eb947243e4afcd718b0/Python/lock.c |
| https://github.com/python/cpython/tree/d207c7cd5a8c0d3e5f6c5eb947243e4afcd718b0 |
| gh-110850: Replace _PyTime_t with PyTime_t (#115719) | https://github.com/python/cpython/commit/9af80ec83d1647a472331bd1333a7fa9108fe98e |
| https://github.com/vstinner |
| vstinner | https://github.com/python/cpython/commits?author=vstinner |
| 9af80ec | https://github.com/python/cpython/commit/9af80ec83d1647a472331bd1333a7fa9108fe98e |
| https://github.com/python/cpython/blob/9af80ec83d1647a472331bd1333a7fa9108fe98e/Python/lock.c |
| https://github.com/python/cpython/tree/9af80ec83d1647a472331bd1333a7fa9108fe98e |
| gh-113743: Make the MRO cache thread-safe in free-threaded builds (#113930) | https://github.com/python/cpython/commit/ae460d450ab854ca66d509ef6971cfe1b6312405 |
| https://github.com/DinoV |
| DinoV | https://github.com/python/cpython/commits?author=DinoV |
| ae460d4 | https://github.com/python/cpython/commit/ae460d450ab854ca66d509ef6971cfe1b6312405 |
| https://github.com/python/cpython/blob/ae460d450ab854ca66d509ef6971cfe1b6312405/Python/lock.c |
| https://github.com/python/cpython/tree/ae460d450ab854ca66d509ef6971cfe1b6312405 |
| gh-111964: Add _PyRWMutex a "readers-writer" lock (gh-112859) | https://github.com/python/cpython/commit/5ae75e1be24bd6b031a68040cfddb71732461f67 |
| https://github.com/colesbury |
| colesbury | https://github.com/python/cpython/commits?author=colesbury |
| 5ae75e1 | https://github.com/python/cpython/commit/5ae75e1be24bd6b031a68040cfddb71732461f67 |
| https://github.com/python/cpython/blob/5ae75e1be24bd6b031a68040cfddb71732461f67/Python/lock.c |
| https://github.com/python/cpython/tree/5ae75e1be24bd6b031a68040cfddb71732461f67 |
| gh-111863: Rename `Py_NOGIL` to `Py_GIL_DISABLED` (#111864) | https://github.com/python/cpython/commit/3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787 |
| https://github.com/hugovk |
| hugovk | https://github.com/python/cpython/commits?author=hugovk |
| 3b3ec0d | https://github.com/python/cpython/commit/3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787 |
| https://github.com/python/cpython/blob/3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787/Python/lock.c |
| https://github.com/python/cpython/tree/3b3ec0d77f0f836cbe5ff1ab97efcc8b7ed5d787 |
| gh-111956: Add thread-safe one-time initialization. (gh-111960) | https://github.com/python/cpython/commit/446f18a911916eabd2c0ceed0c2a109fc8480727 |
| https://github.com/colesbury |
| colesbury | https://github.com/python/cpython/commits?author=colesbury |
| 446f18a | https://github.com/python/cpython/commit/446f18a911916eabd2c0ceed0c2a109fc8480727 |
| https://github.com/python/cpython/blob/446f18a911916eabd2c0ceed0c2a109fc8480727/Python/lock.c |
| https://github.com/python/cpython/tree/446f18a911916eabd2c0ceed0c2a109fc8480727 |
| gh-108724: Add PyMutex and _PyParkingLot APIs (gh-109344) | https://github.com/python/cpython/commit/0c89056fe59ac42f09978582479d40e58a236856 |
| colesbury | https://github.com/python/cpython/commits?author=colesbury |
| ericsnowcurrently | https://github.com/python/cpython/commits?author=ericsnowcurrently |
| 0c89056 | https://github.com/python/cpython/commit/0c89056fe59ac42f09978582479d40e58a236856 |
| https://github.com/python/cpython/blob/0c89056fe59ac42f09978582479d40e58a236856/Python/lock.c |
| https://github.com/python/cpython/tree/0c89056fe59ac42f09978582479d40e58a236856 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |