Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setupWorkerThreads does not work #35

Closed
Kozzi11 opened this issue Sep 21, 2017 · 1 comment
Closed

setupWorkerThreads does not work #35

Kozzi11 opened this issue Sep 21, 2017 · 1 comment

Comments

@Kozzi11
Copy link

Kozzi11 commented Sep 21, 2017

When I use libevent configuration for vibe-d:core. Everything works ok, but with vibe-core not.

void main()
{
setupWorkerThreads(6);
logInfo("%s", workerThreadCount); // print six with libevent, but zero with vibe-core
runWorkerTaskDist(&runServer);
runApplication();
}

@s-ludwig
Copy link
Member

The problem was actually two-fold:

  • workerThreadCount wasn't adjusted for the refactored worker task implementation and always returned zero
  • setupWorkerThreads always used the number of logical cores instead of the number provided manually.

I'll also add a test for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants