是否有开源线程安全的 C++ 对象池实现? [英] Is there an open source thread safe C++ object pool implementation?

查看:26
本文介绍了是否有开源线程安全的 C++ 对象池实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个套接字连接池,它将提供给多个工作线程.是否有一个线程安全的对象池实现,其功能类似于 Apache Commons 的 GenericObjectPool?

I need to create a pool of socket connections which will be served to multiple worker threads. Is there a thread safe object pool implementation with functionality similar to Apache Commons' GenericObjectPool?

推荐答案

查看 boost.flyweight.

这篇关于是否有开源线程安全的 C++ 对象池实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆