https://kotlinlang.org logo
#coroutines
Title
# coroutines
f

FoRRestDp

07/03/2021, 4:56 PM
Hi, is there good `suspend`ing equivalent for 
ReadWriteLock
 in a library anywhere?
m

mbonnin

07/03/2021, 8:22 PM
There is atomic-fu. It's not suspending but has multiplateform rw locks
f

FoRRestDp

07/03/2021, 8:29 PM
Thank you!
u

ursus

07/04/2021, 12:11 PM
Mutex?
f

FoRRestDp

07/04/2021, 12:20 PM
Mutex is not the same as ReadWritLock: Wiki. By the way there is no ReadWriteLock in atomicfu
m

mbonnin

07/04/2021, 5:25 PM
Arg yes, my bad, it's reentrantLock, not rw
I remember an issue with native rw locks but afair it wasn't implemented
7 Views