0xsky / xredis

Redis C++ client, support the data slice storage, support redis cluster, thread-safe,multi-platform,connection pool, read/write separation.
GNU General Public License v3.0
336 stars 153 forks source link

从连接池负载满后,等待线程的处理方式是sleep+自旋等待? #66

Open OdysseyHJ opened 1 year ago

OdysseyHJ commented 1 year ago

目前从下方接口看,连接池满载后,等待线程的处理方式是sleep+自旋等待,我觉得这里对性能会有影响 RedisConnection* xRedisClusterManager::getConnection(uint32_t idx)

OdysseyHJ commented 1 year ago

@0xsky

0xsky commented 1 year ago

这个地方,返回错误??或是有什么好的思路么?