我正在尝试编译和安装Redis的memtier_benchmark数据库性能基准测试工具,并且遇到了错误:make: *** No rule to make target,尽管目录中确实存在用于它的Makefile/configure: line 16460: syntax error near unexpected token LIBEVENT_OPENSSL,' ./configure: line 16460: ` PKG_CHECK_MODULES(LIBEVENT_OPENSSL,'
我在后端线程中使用libevent来运行hiredis并订阅远程redis数据库。订阅非常好地使用了来自另一个SO问题的简单示例:
但是,为了避免争用条件,从主线程添加订阅并不容易。Client* client = reinterpret_cast<Client*>(arg); // the client handles the subscription to redis(via hiredis/libevent)}