jonhoo / drwmutex

Distributed RWMutex in Go
MIT License
343 stars 17 forks source link

Use number of cpus instead of GOMAXPROCS #6

Closed funny-falcon closed 7 years ago

funny-falcon commented 7 years ago

GOMAXPROCS could be lesser, than number of cpu. Then when RLocker() will be called, there will be bound checking panic.

jonhoo commented 7 years ago

Ah, yes, good catch!