René's URL Explorer Experiment


Title: Thread safety implementation using locking by srajko · Pull Request #836 · nodegit/nodegit · GitHub

Open Graph Title: Thread safety implementation using locking by srajko · Pull Request #836 · nodegit/nodegit

X Title: Thread safety implementation using locking by srajko · Pull Request #836 · nodegit/nodegit

Description: Native Node bindings to Git. Contribute to nodegit/nodegit development by creating an account on GitHub.

Open Graph Description: Prototype for a solution to #827

X Description: Prototype for a solution to #827

Opengraph URL: https://github.com/nodegit/nodegit/pull/836

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:c03895fe-032f-d567-1fb0-e2d4373a7d52
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD192:39AD58:B14933:EEF7E2:6A604B60
html-safe-nonce7a89059cbcc227f8bd24db2e85f468bab54ae1611db570d8a3344bc7e2d76a3f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTkyOjM5QUQ1ODpCMTQ5MzM6RUVGN0UyOjZBNjA0QjYwIiwidmlzaXRvcl9pZCI6IjM3OTQwNzE2ODg5ODU5ODc5MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc78678fd7fea39de621ce1fb459f17fc5b71f005eafa7cb379f1a4f407d977a6
hovercard-subject-tagpull_request:53922981
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodegit/nodegit/pull/836/commits
twitter:imagehttps://opengraph.githubassets.com/709355e31f995b14ec47fbdf199236605aac2c4366b2d587ca08c5efe3f9ef3d/nodegit/nodegit/pull/836
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/709355e31f995b14ec47fbdf199236605aac2c4366b2d587ca08c5efe3f9ef3d/nodegit/nodegit/pull/836
og:image:altPrototype for a solution to #827
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesrajko
hostnamegithub.com
expected-hostnamegithub.com
None60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0
turbo-cache-controlno-cache
go-importgithub.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git
octolytics-dimension-user_id657068
octolytics-dimension-user_loginnodegit
octolytics-dimension-repository_id1383170
octolytics-dimension-repository_nwonodegit/nodegit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1383170
octolytics-dimension-repository_network_root_nwonodegit/nodegit
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9824515e740d83d5eb82168a089b806ab0fe04a1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodegit/nodegit/pull/836/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fpull%2F836%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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
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
Reloadhttps://github.com/nodegit/nodegit/pull/836/commits
Reloadhttps://github.com/nodegit/nodegit/pull/836/commits
Reloadhttps://github.com/nodegit/nodegit/pull/836/commits
Please reload this pagehttps://github.com/nodegit/nodegit/pull/836/commits
nodegit https://github.com/nodegit
nodegithttps://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
johnhaley81https://github.com/johnhaley81
nodegit:masterhttps://github.com/nodegit/nodegit/tree/master
srajko:thread-safety-lockinghttps://github.com/srajko/nodegit/tree/thread-safety-locking
Conversationhttps://github.com/nodegit/nodegit/pull/836
Commits20 (20)https://github.com/nodegit/nodegit/pull/836/commits
Checkshttps://github.com/nodegit/nodegit/pull/836/checks
Files changedhttps://github.com/nodegit/nodegit/pull/836/files
Thread safety implementation using lockinghttps://github.com/nodegit/nodegit/pull/836/commits#top
johnhaley81https://github.com/johnhaley81
nodegit:masterhttps://github.com/nodegit/nodegit/tree/master
srajko:thread-safety-lockinghttps://github.com/srajko/nodegit/tree/thread-safety-locking
Add LockMasterhttps://github.com/nodegit/nodegit/pull/836/commits/f07b0989a0803dc143687cf7f67637db951af2f3
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
f07b098https://github.com/nodegit/nodegit/pull/836/commits/f07b0989a0803dc143687cf7f67637db951af2f3
https://github.com/nodegit/nodegit/tree/f07b0989a0803dc143687cf7f67637db951af2f3
Use LockMaster for sync and async functionshttps://github.com/nodegit/nodegit/pull/836/commits/64ba08a781b18c56d0517f62b34029f43e938821
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
64ba08ahttps://github.com/nodegit/nodegit/pull/836/commits/64ba08a781b18c56d0517f62b34029f43e938821
https://github.com/nodegit/nodegit/tree/64ba08a781b18c56d0517f62b34029f43e938821
Move template specializations out of class definitionhttps://github.com/nodegit/nodegit/pull/836/commits/cb92954d480b38b00e0526e44a22e6c49b56a5bd
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
cb92954https://github.com/nodegit/nodegit/pull/836/commits/cb92954d480b38b00e0526e44a22e6c49b56a5bd
https://github.com/nodegit/nodegit/tree/cb92954d480b38b00e0526e44a22e6c49b56a5bd
Add repo locking for commitshttps://github.com/nodegit/nodegit/pull/836/commits/81740e3ba55df8160c07b34d8f0da207e66e0382
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
81740e3https://github.com/nodegit/nodegit/pull/836/commits/81740e3ba55df8160c07b34d8f0da207e66e0382
https://github.com/nodegit/nodegit/tree/81740e3ba55df8160c07b34d8f0da207e66e0382
Remove use of autohttps://github.com/nodegit/nodegit/pull/836/commits/12eca233b86e37aeac0f3c7d1f0951385832ad8c
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
12eca23https://github.com/nodegit/nodegit/pull/836/commits/12eca233b86e37aeac0f3c7d1f0951385832ad8c
https://github.com/nodegit/nodegit/tree/12eca233b86e37aeac0f3c7d1f0951385832ad8c
Add temporary unlock during callbackshttps://github.com/nodegit/nodegit/pull/836/commits/7579e3ac1335db2475c334f882fa45628eac9568
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
7579e3ahttps://github.com/nodegit/nodegit/pull/836/commits/7579e3ac1335db2475c334f882fa45628eac9568
https://github.com/nodegit/nodegit/tree/7579e3ac1335db2475c334f882fa45628eac9568
Test callback deadlockhttps://github.com/nodegit/nodegit/pull/836/commits/7d31f5275e4f3b197326d24bb727101613c2007d
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
7d31f52https://github.com/nodegit/nodegit/pull/836/commits/7d31f5275e4f3b197326d24bb727101613c2007d
https://github.com/nodegit/nodegit/tree/7d31f5275e4f3b197326d24bb727101613c2007d
Clean up mutexeshttps://github.com/nodegit/nodegit/pull/836/commits/908b8b59e371fecdeef85a019d028616a2a55726
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
908b8b5https://github.com/nodegit/nodegit/pull/836/commits/908b8b59e371fecdeef85a019d028616a2a55726
https://github.com/nodegit/nodegit/tree/908b8b59e371fecdeef85a019d028616a2a55726
Ensure mutexes are locked all at the same timehttps://github.com/nodegit/nodegit/pull/836/commits/c33fa10cdbf0cf3363436cb5d2bfbfabfae562b4
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
c33fa10https://github.com/nodegit/nodegit/pull/836/commits/c33fa10cdbf0cf3363436cb5d2bfbfabfae562b4
https://github.com/nodegit/nodegit/tree/c33fa10cdbf0cf3363436cb5d2bfbfabfae562b4
Add opt-in / opt-out mechanism for thread safetyhttps://github.com/nodegit/nodegit/pull/836/commits/65a998d37bbd1209621d1612c17adecdf6c690d8
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
65a998dhttps://github.com/nodegit/nodegit/pull/836/commits/65a998d37bbd1209621d1612c17adecdf6c690d8
https://github.com/nodegit/nodegit/tree/65a998d37bbd1209621d1612c17adecdf6c690d8
Fix uv_mutex_trylock response handlinghttps://github.com/nodegit/nodegit/pull/836/commits/040a4eee93c521f51f151a266a4ba16240d14bca
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
040a4eehttps://github.com/nodegit/nodegit/pull/836/commits/040a4eee93c521f51f151a266a4ba16240d14bca
https://github.com/nodegit/nodegit/tree/040a4eee93c521f51f151a266a4ba16240d14bca
Remove use of shared_ptrhttps://github.com/nodegit/nodegit/pull/836/commits/5efab3f13fdf8dd02813d1923ec9423f20990e8f
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
5efab3fhttps://github.com/nodegit/nodegit/pull/836/commits/5efab3f13fdf8dd02813d1923ec9423f20990e8f
https://github.com/nodegit/nodegit/tree/5efab3f13fdf8dd02813d1923ec9423f20990e8f
Address c++11 warningshttps://github.com/nodegit/nodegit/pull/836/commits/4b506f7cbd0d36b825aa20f1a1d991b9f632b496
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
4b506f7https://github.com/nodegit/nodegit/pull/836/commits/4b506f7cbd0d36b825aa20f1a1d991b9f632b496
https://github.com/nodegit/nodegit/tree/4b506f7cbd0d36b825aa20f1a1d991b9f632b496
Move LockMaster to its own fileshttps://github.com/nodegit/nodegit/pull/836/commits/7257e5ecf2ea810200aa8a8810c6f405a72a8d2c
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
7257e5ehttps://github.com/nodegit/nodegit/pull/836/commits/7257e5ecf2ea810200aa8a8810c6f405a72a8d2c
https://github.com/nodegit/nodegit/tree/7257e5ecf2ea810200aa8a8810c6f405a72a8d2c
Reorganize and clean up codehttps://github.com/nodegit/nodegit/pull/836/commits/fb4603dfc71378fdb77aaf6aa667beb3a89dd035
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
fb4603dhttps://github.com/nodegit/nodegit/pull/836/commits/fb4603dfc71378fdb77aaf6aa667beb3a89dd035
https://github.com/nodegit/nodegit/tree/fb4603dfc71378fdb77aaf6aa667beb3a89dd035
Use auto, range-based for loops, and for_eachhttps://github.com/nodegit/nodegit/pull/836/commits/90d80732f1b337d01127048c0e9216a7e5d41ed1
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
90d8073https://github.com/nodegit/nodegit/pull/836/commits/90d80732f1b337d01127048c0e9216a7e5d41ed1
https://github.com/nodegit/nodegit/tree/90d80732f1b337d01127048c0e9216a7e5d41ed1
Use ObjectInfo instead of pair for readabilityhttps://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
ab3d2dahttps://github.com/nodegit/nodegit/pull/836/commits/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781
https://github.com/nodegit/nodegit/tree/ab3d2da58d6d2e64fb8eeadb15d2d431bd15d781
Initialize LockMaster before using ithttps://github.com/nodegit/nodegit/pull/836/commits/dbce34f9f6298c6df80f2e0771dcafef51a6c35f
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
dbce34fhttps://github.com/nodegit/nodegit/pull/836/commits/dbce34f9f6298c6df80f2e0771dcafef51a6c35f
https://github.com/nodegit/nodegit/tree/dbce34f9f6298c6df80f2e0771dcafef51a6c35f
Remove unused elsehttps://github.com/nodegit/nodegit/pull/836/commits/1c6ea17510dc155242b1db2b55e3c5be5fb81e36
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
1c6ea17https://github.com/nodegit/nodegit/pull/836/commits/1c6ea17510dc155242b1db2b55e3c5be5fb81e36
https://github.com/nodegit/nodegit/tree/1c6ea17510dc155242b1db2b55e3c5be5fb81e36
Make thread safety enable / disable more robust to togglinghttps://github.com/nodegit/nodegit/pull/836/commits/7a5a37f48c0fa027fa420317d1ddb814512f5177
https://github.com/srajko
srajkohttps://github.com/nodegit/nodegit/commits?author=srajko
7a5a37fhttps://github.com/nodegit/nodegit/pull/836/commits/7a5a37f48c0fa027fa420317d1ddb814512f5177
https://github.com/nodegit/nodegit/tree/7a5a37f48c0fa027fa420317d1ddb814512f5177
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.