Now PriorityQueue::deque() becomes async and always return MessageContainer and never return nil. When no message is available, sleep with withCheckedContinuation until new message is comming.
With this change, HPRTMPExample CPU load becomes 14% for my iPhone 14 pro (previous: more than 100%).
Now PriorityQueue::deque() becomes async and always return MessageContainer and never return nil. When no message is available, sleep with withCheckedContinuation until new message is comming.
With this change, HPRTMPExample CPU load becomes 14% for my iPhone 14 pro (previous: more than 100%).