| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:4327d6fc-919a-7496-1dd0-045a33a5e930 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E5D8:3C53BD:462A270:5D97251:6A65323C |
| html-safe-nonce | ec0e4c350f90709d57b438d074f3d388700f0c22126584e28db2df0b33cc86fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUQ4OjNDNTNCRDo0NjJBMjcwOjVEOTcyNTE6NkE2NTMyM0MiLCJ2aXNpdG9yX2lkIjoiMjk1OTkwNDEyODU5OTY2NzI2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 29760e90a7b718589f16d07bfe8c0e6821ad286c6543f885ae4528b4a5abfba9 |
| hovercard-subject-tag | pull_request:53922981 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
| twitter:image | https://avatars.githubusercontent.com/u/291007?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/291007?s=400&v=4 |
| og:image:alt | Prototype for a solution to #827 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| 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 | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fpull%2F836%2Fcommits%2Fab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| Code QualityEnforce quality at merge | https://github.com/features/code-quality |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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 |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fpull%2F836%2Fcommits%2Fab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
|
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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=nodegit%2Fnodegit |
| Reload | https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
| Reload | https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
| Reload | https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
| Please reload this page | https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
|
nodegit
| https://github.com/nodegit |
| nodegit | https://github.com/nodegit/nodegit |
|
Notifications
| https://github.com/login?return_to=%2Fnodegit%2Fnodegit |
|
Fork
698
| https://github.com/login?return_to=%2Fnodegit%2Fnodegit |
|
Star
5.8k
| https://github.com/login?return_to=%2Fnodegit%2Fnodegit |
|
Code
| https://github.com/nodegit/nodegit |
|
Issues
343
| https://github.com/nodegit/nodegit/issues |
|
Pull requests
20
| https://github.com/nodegit/nodegit/pulls |
|
Actions
| https://github.com/nodegit/nodegit/actions |
|
Projects
| https://github.com/nodegit/nodegit/projects |
|
Security and quality
0
| https://github.com/nodegit/nodegit/security |
|
Insights
| https://github.com/nodegit/nodegit/pulse |
|
Code
| https://github.com/nodegit/nodegit |
|
Issues
| https://github.com/nodegit/nodegit/issues |
|
Pull requests
| https://github.com/nodegit/nodegit/pulls |
|
Actions
| https://github.com/nodegit/nodegit/actions |
|
Projects
| https://github.com/nodegit/nodegit/projects |
|
Security and quality
| https://github.com/nodegit/nodegit/security |
|
Insights
| https://github.com/nodegit/nodegit/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fnodegit%2Fnodegit%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fnodegit%2Fnodegit%2Fissues%2Fnew%2Fchoose |
| johnhaley81 | https://github.com/johnhaley81 |
| nodegit:master | https://github.com/nodegit/nodegit/tree/master |
| srajko:thread-safety-locking | https://github.com/srajko/nodegit/tree/thread-safety-locking |
|
Conversation
15
| https://github.com/nodegit/nodegit/pull/836 |
|
Commits
20
| https://github.com/nodegit/nodegit/pull/836/commits |
|
Checks
0
| https://github.com/nodegit/nodegit/pull/836/checks |
|
Files changed
| https://github.com/nodegit/nodegit/pull/836/files |
| Please reload this page | https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
|
Thread safety implementation using locking
| https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781#top |
|
Show all changes
20 commits
| https://github.com/nodegit/nodegit/pull/836/files |
|
f07b098
Add LockMaster
srajko Dec 17, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/f07b0989a0803dc143687cf7f67637db951af2f3 |
|
64ba08a
Use LockMaster for sync and async functions
srajko Dec 17, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/64ba08a781b18c56d0517f62b34029f43e938821 |
|
cb92954
Move template specializations out of class definition
srajko Dec 17, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/cb92954d480b38b00e0526e44a22e6c49b56a5bd |
|
81740e3
Add repo locking for commits
srajko Dec 17, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/81740e3ba55df8160c07b34d8f0da207e66e0382 |
|
12eca23
Remove use of auto
srajko Dec 17, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/12eca233b86e37aeac0f3c7d1f0951385832ad8c |
|
7579e3a
Add temporary unlock during callbacks
srajko Dec 17, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/7579e3ac1335db2475c334f882fa45628eac9568 |
|
7d31f52
Test callback deadlock
srajko Dec 18, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/7d31f5275e4f3b197326d24bb727101613c2007d |
|
908b8b5
Clean up mutexes
srajko Dec 18, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/908b8b59e371fecdeef85a019d028616a2a55726 |
|
c33fa10
Ensure mutexes are locked all at the same time
srajko Dec 18, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/c33fa10cdbf0cf3363436cb5d2bfbfabfae562b4 |
|
65a998d
Add opt-in / opt-out mechanism for thread safety
srajko Dec 18, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/65a998d37bbd1209621d1612c17adecdf6c690d8 |
|
040a4ee
Fix uv_mutex_trylock response handling
srajko Dec 23, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/040a4eee93c521f51f151a266a4ba16240d14bca |
|
5efab3f
Remove use of shared_ptr
srajko Dec 30, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/5efab3f13fdf8dd02813d1923ec9423f20990e8f |
|
4b506f7
Address c++11 warnings
srajko Dec 31, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/4b506f7cbd0d36b825aa20f1a1d991b9f632b496 |
|
7257e5e
Move LockMaster to its own files
srajko Dec 31, 2015
| https://github.com/nodegit/nodegit/pull/836/commits/7257e5ecf2ea810200aa8a8810c6f405a72a8d2c |
|
fb4603d
Reorganize and clean up code
srajko Jan 1, 2016
| https://github.com/nodegit/nodegit/pull/836/commits/fb4603dfc71378fdb77aaf6aa667beb3a89dd035 |
|
90d8073
Use auto, range-based for loops, and for_each
srajko Jan 4, 2016
| https://github.com/nodegit/nodegit/pull/836/commits/90d80732f1b337d01127048c0e9216a7e5d41ed1 |
|
ab3d2da
Use ObjectInfo instead of pair for readability
srajko Jan 4, 2016
| https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
|
dbce34f
Initialize LockMaster before using it
srajko Jan 5, 2016
| https://github.com/nodegit/nodegit/pull/836/commits/dbce34f9f6298c6df80f2e0771dcafef51a6c35f |
|
1c6ea17
Remove unused else
srajko Jan 6, 2016
| https://github.com/nodegit/nodegit/pull/836/commits/1c6ea17510dc155242b1db2b55e3c5be5fb81e36 |
|
7a5a37f
Make thread safety enable / disable more robust to toggling
srajko Jan 6, 2016
| https://github.com/nodegit/nodegit/pull/836/commits/7a5a37f48c0fa027fa420317d1ddb814512f5177 |
|
Clear filters
| https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
| Please reload this page | https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
| Please reload this page | https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
|
Prev
| https://github.com/nodegit/nodegit/pull/836/commits/90d80732f1b337d01127048c0e9216a7e5d41ed1 |
|
Next
| https://github.com/nodegit/nodegit/pull/836/commits/dbce34f9f6298c6df80f2e0771dcafef51a6c35f |
| Please reload this page | https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781 |
|
| https://github.com/srajko |
| srajko | https://github.com/nodegit/nodegit/commits?author=srajko |
| generate/templates/manual/src/lock_master.cc | https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781#diff-99343f9984cbb0cd51cbc0eacd0f7a50b7b5912ab860fc63ecf5dd285ab42960 |
|
View file
| https://github.com/srajko/nodegit/blob/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781/generate/templates/manual/src/lock_master.cc |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/nodegit/nodegit/pull/836/commits/{{ revealButtonHref }} |
|
| https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781#diff-99343f9984cbb0cd51cbc0eacd0f7a50b7b5912ab860fc63ecf5dd285ab42960 |
|
| https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781#diff-99343f9984cbb0cd51cbc0eacd0f7a50b7b5912ab860fc63ecf5dd285ab42960 |
|
| https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781#diff-99343f9984cbb0cd51cbc0eacd0f7a50b7b5912ab860fc63ecf5dd285ab42960 |
|
| https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781#diff-99343f9984cbb0cd51cbc0eacd0f7a50b7b5912ab860fc63ecf5dd285ab42960 |
|
| https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781#diff-99343f9984cbb0cd51cbc0eacd0f7a50b7b5912ab860fc63ecf5dd285ab42960 |
|
| https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781#diff-99343f9984cbb0cd51cbc0eacd0f7a50b7b5912ab860fc63ecf5dd285ab42960 |
|
| https://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781#diff-99343f9984cbb0cd51cbc0eacd0f7a50b7b5912ab860fc63ecf5dd285ab42960 |
|
| 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 |