Event / Task Queue Multithreading C++

前端 未结 8 1107
梦如初夏
梦如初夏 2021-02-04 15:18

I would like to create a class whose methods can be called from multiple threads. but instead of executing the method in the thread from which it was called, it should perform t

8条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 16:02

    The POCO library has something along the same lines called ActiveMethod (along with some related functionality e.g. ActiveResult) in the threading section. The source code is readily available and easily understood.

提交回复
热议问题