Event / Task Queue Multithreading C++

前端 未结 8 1108
梦如初夏
梦如初夏 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-04 16:09

    You might be interested in Active Object one of the ACE Patterns of the ACE framework.

    As Nikolai pointed out futures are planned for standard C++ some time in the future (pun intended).

提交回复
热议问题