Are all these structures thread safe? #68

Closed
opened 2017-11-18 08:28:48 +00:00 by YanKawaYu · 3 comments
YanKawaYu commented 2017-11-18 08:28:48 +00:00 (Migrated from github.com)

Hi guys, I'm wondering whether I should use RWMutex with the structures? I'm working on a concurrent application. Thanks very much!

Hi guys, I'm wondering whether I should use RWMutex with the structures? I'm working on a concurrent application. Thanks very much!
emirpasic commented 2017-11-18 09:19:49 +00:00 (Migrated from github.com)

@zhaoxy2850 No, they are not. Thread safety is not a concern of this project. This should be handled at a higher level, hence use of RWMutex to wrap GoDS insertion/retrieval methods is the way to go.

@zhaoxy2850 No, they are not. Thread safety is not a concern of this project. This should be handled at a higher level, hence use of RWMutex to wrap GoDS insertion/retrieval methods is the way to go.
YanKawaYu commented 2017-11-18 10:47:53 +00:00 (Migrated from github.com)

Thanks!

Thanks!
lthibault commented 2019-02-10 21:53:43 +00:00 (Migrated from github.com)

@emirpasic Does this these data structures are safe for concurrent reads? (e.g. with an iterator?)

@emirpasic Does this these data structures are safe for concurrent *reads*? (e.g. with an iterator?)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
golibs/gms-gods#68
No description provided.