What is a RecursiveLock?

Hi all :slight_smile:

I just stumbled over that:

https://github.com/JuliaLang/julia/blob/ae336abc0ed7e63ab933d0073df28c51e981d8fc/base/condition.jl#L37

Where is the RecursiveLock defined?

Cheers

Maybe it’a typo, means ReentrantLock.

In computer science, the reentrant mutex ( recursive mutex , recursive lock ) is a particular type of mutual exclusion (mutex) device that may be locked multiple times by the same process/thread, without causing a deadlock.

Should we change it?

1 Like

I think you can open a pr to fix it and ask vtjnash to review.

At least, we should remove this invalid reference.

1 Like

Can you walk me through it? Do I need to create a new branch for that?

TLDR is go here https://github.com/JuliaLang/julia/blob/master/base/condition.jl, click edit (pencil icon in top right), make the changes, and github should automatically make a fork for you.

1 Like

That was easy :slight_smile:
https://github.com/JuliaLang/julia/pull/43192

4 Likes

Congrats!

1 Like