Is dulwich thread safe?

25 views
Skip to first unread message

Alejandro Fernandez

unread,
Sep 18, 2020, 5:17:45 PM9/18/20
to dulwich-discuss
In other words, if I have a MemoryRepo instance, 
can I be performing "fetch(), updating references and performing a send_pack()" on one thread and traversing the commit graph or even introducing a change into the object_store and local references in another thread (same MemoryRepo instance)?

Thank you for your great job! 

Alex

jver...@gmail.com

unread,
Sep 20, 2020, 4:37:34 PM9/20/20
to Alejandro Fernandez, dulwich-discuss
On Fri, 2020-09-18 at 14:17 -0700, Alejandro Fernandez wrote:
> In other words, if I have a MemoryRepo instance,
> can I be performing "fetch(), updating references and performing a
> send_pack()" on one thread and traversing the commit graph or even
> introducing a change into the object_store and local references in
> another thread (same MemoryRepo instance)?
Yes, MemoryRepo is meant to be thread-safe. If you run into any issues,
then please file a bug.

Jelmer

Reply all
Reply to author
Forward
0 new messages