damus-io / nostrdb

The unfairly fast embedded nostr database backed by lmdb
Other
92 stars 17 forks source link

Update threadpool.h #9

Closed geeknik closed 10 months ago

geeknik commented 1 year ago

Prevent creation of a thread pool with zero threads

jb55 commented 1 year ago

On Sat, Aug 12, 2023 at 06:07:26PM -0700, geeknik wrote:

Prevent creation of a thread pool with zero threads You can view, comment on, or merge this pull request online at:

makes sense

geeknik commented 1 year ago

Interesting. The FPE (division by zero) error went away after I added my check.