|
Hi Raveendranath,
Uze gave pseudo code, there is no is_queue_empty() method in IoTivity. What he meant was OCProcess() is used for processing any incoming request/responses added to receive queue in message handler and OCProcess() thread can be signaled to wake up only when there any messages received. But OCProcess() is used for checking timeout for presence callbacks and keepalive sessions also. I think your problem would be solved if OCProcess() thread wakes up only when any message received or near timeout of either presence callback or keepalive session.
Regards, Harish Kumara M
--------- Original Message --------- Sender : Ravee <[email protected]> Date : 2018-11-28 11:52 (GMT+5:30) Title : Re: [dev] Thread wake up every 10ms
Hi,
I can try a fix here. But probably, missing some insights here. If someone, can shed more light, I'm willing to give it a try.
ts = OCProcess(); if (is_queue_empty()) { } I don't see any is_queue_empty API in InProcServerWrapper.h? What does this queue represents, incoming message queue?? -Ravee On Wed, Nov 28, 2018 at 11:25 AM 최우제 (Uze Choi) <[email protected]> wrote:
_._,_._,_
Links: You receive all messages sent to this group.
View/Reply Online (#10033) |
Reply To Sender
| Reply To Group
|
Mute This Topic
| New Topic _._,_._,_
|
- [dev] Thread wake up every 10ms Ravee
- Re: [dev] Thread wake up every 10ms Ravee
- Re: [dev] Thread wake up every 10ms Uze Choi
- Re: [dev] Thread wake up every 10ms Uze Choi
- Re: [dev] Thread wake up every 10ms Ravee
- Re: [dev] Thread wake up every 10ms Uze Choi
- Re: [dev] Thread wake up every 10ms Ravee
- Re: [dev] Thread wake up every 10ms Harishkm
