Skip to content

Conversation

@zjqzero
Copy link

@zjqzero zjqzero commented Sep 18, 2025

Add a bind_cpu interface to EventLoop so that multiple AsyncRedis instances, the load can be distributed more evenly.
Also, assign a name to the EventLoop thread to make it easier to identify and debug.

@sewenew
Copy link
Owner

sewenew commented Sep 25, 2025

Thanks for your contribution! However, it seems that there's no cpp standard lib for setting cpu affinity. The setaffinity API you used does not work on Windows. redis-plus-plus also need to support Windows env.

So I decide to make this PR pending until there's a better solution. Thanks again!

Regards

@zjqzero
Copy link
Author

zjqzero commented Sep 26, 2025

Sorry, since I’m only using it on Linux, I didn’t think it through carefully.

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

Successfully merging this pull request may close these issues.

2 participants