Where can we use std::barrier over std::latch?

余生长醉 提交于 2019-12-10 14:42:40

问题


I recently heard new c++ standard features which are:

  1. std::latch
  2. std::barrier

I cannot figure it out ,in which situations that they are applicable and useful over one-another.

  • If someone can raise an example for how to use each one of them wisely it would be really helpful.

来源:https://stackoverflow.com/questions/48985967/where-can-we-use-stdbarrier-over-stdlatch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!