|
I'm using the C++ spanner client and make copies when necessary according to for thread safety. However I didn't find any documentation around whether it's safe to share the same transaction across multiple threads. Can someone confirm whether it's safe or not? Thank you! |
Answered by
devbww
Oct 27, 2021
Replies: 1 comment
|
Yes, a transaction can be used across multiple threads. It seems there would need to be some synchronization to decide who commits and when, however. |
0 replies
Answer selected by
qizzzh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, a transaction can be used across multiple threads. It seems there would need to be some synchronization to decide who commits and when, however.