Raising events on separate thread

前端 未结 5 1590
耶瑟儿~
耶瑟儿~ 2020-12-29 06:07

I am developing a component which needs to process the live feed and broadcast the data to the listeners in pretty fast manner ( with about 100 nano second level accuracy, e

5条回答
  •  醉梦人生
    2020-12-29 07:05

    Signals and shared memory are very fast. You could send a separate signal to tell applications to read a message from a shared-memory location. Of course, the signal is still an event that your application has to consume on a high-priority thread if you want low latency. I would include a time-tag in the data so the receiver can compensate for the inevitable latency.

提交回复
热议问题