Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Jan 5, 2018

Current version of clone_at and fetch dont release GVL when transfering data between client and server, so I just simply dup clone_at and fetch to remove their GVL and rename to clone_at2 and fetch2.

Limit:
The internal data structure in libgit2 is not protected by locks so dont use these APIs in mutlithread.

@arthurschreiber
Copy link
Member

Have you seen that there is a rb_thread_call_with_gvl which allows reaquiring the GVL to call ruby C-API functions again? I think using that you could keep the push notification callback behaviour as-is and not require khash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants