Skip to content

Work in progress - Create thread safe map for actors to use

Notifications You must be signed in to change notification settings

Jo-Lillie/thread-safe-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

thread-safe-map

Create thread safe maps.

In Golang there can be a lot of threads running at the same time reading maps in parallel. Since Go's maps aren't completely thread safe, this causes data races.

This package implements a go interface that wraps the maps and has mutexes to protect reading and writing to the map.

(threadsafemap_test.go) Calls the functions and tests against dummy data.

to test this run:

go test -v 

About

Work in progress - Create thread safe map for actors to use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages