且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

升压消息队列不是基于POSIX消息队列?无法选择(2)?

更新时间:2023-11-25 10:17:28

使用Boost.Interprocess中同步类时,我遇到了类似的情况前些天:即条件类。它是在一个通用的方式实施,但它已经做的方式是使用自定义的自旋锁是的的低效(在OS X上至少)。对于所有意图和目的对其提出的同步类无用的。

I ran into a similar situation the other day when using Boost.Interprocess' sync classes: namely the condition class. It's implemented in a "generic" manner, but the way it has been done is to use a custom spinlock which is highly inefficient (on OS X at least). For all intents and purposes it made the sync classes useless.

在我的经验,进程间图书馆是pretty不成熟。我用它来共享内存,以及它的工作pretty良好,但也有一些粗糙的边缘,我已经砍周围的一些缺失的功能,例如动态调整共享内存等。

In my experience the Interprocess library is pretty immature. I use it for shared memory, and it does work pretty well but there are some rough edges and I've had to hack around some "missing features" such as dynamically resizing shared memory etc.

在总之,不要指望这个库是一个银子弹,只是还没有。这是很好的,但也不例外在这个时候。

In summary, don't expect this library to be a silver bullet just yet. It's good, but not exceptional at this time.