Skip to content

Replace max thread/signal count with dynamic buckets #162

@f1nalspace

Description

@f1nalspace

Currently FPL has a limit of N fplThreadHandle it can support.

As the CPU core counts increases, FPL must be up-to-date, to match the max number of cores/threads, otherwise it will crash or not allow to create a thread.

To fix this, we have to remove the limit and introduce a bucket list that gets dynamically allocated with 32 threads per bucket. This is important, because threads are a operating system type and you can have as many as you want.

The signals suffer from the same issue, so please fix it in there as well.

Metadata

Metadata

Assignees

Labels

bugBugs/Crashes, etc.threadingThreads, mutexes, signals, etc.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions