Skip to content

Commit

Permalink
[no-ci] Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire authored Sep 9, 2024
1 parent fdc5608 commit 11ee155
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ The `roaring` library allows you to go back and forth between compressed Roaring
```


### Goroutine safety

In general, it not safe to access
the same BitSet using different goroutines--they are
unsynchronized for performance. Should you want to access
a BitSet from more than one goroutine, you should
provide synchronization. Typically this is done by using channels to pass
the *BitSet around (in Go style; so there is only ever one owner),
or by using `sync.Mutex` to serialize operations on BitSets.

## Implementation Note

Go 1.9 introduced a native `math/bits` library. We provide backward compatibility to Go 1.7, which might be removed.
Expand Down

0 comments on commit 11ee155

Please sign in to comment.