0

Thread-safe singleton in Python

Matthieu Méquignon 4 年 前 更新人: Alexander 4 年 前 0

Hi !

Thanks for your work, which is very helpful!

I don't know if it'll be useful, regarding your python example for the thread-safe singleton, I managed to do the same thing with setdefault than with locks

You'll find my version as an attachment.

Cheers

test_singleton.py

UserEcho 的客户支持