Closed alepez closed 7 years ago
Hi @alepez
I am picking up doing some maintenance on this repo. Firstly, I would say sorry for the delay, but it probably does not matter anymore - it has been so long.
There clearly should be a ThreadAPI_Sleep in EventhubClientThread. I will file a PR and merge that fix.
Additionally at some point the IOs used by the EH SDK (and by IoTHub SDK) from azure-c-shared-utility will receive a select-like API that will allow not having sleeps, but actually waiting for readable/writable.
Thanks, /Dan
The change of having a 1 ms sleep has been commit to master, thus closing this.
Thanks, /Dan
I'm using EventHubClient with Linux on x86_64 and after the first call to EventHubClient_Send, the program is using 100% of cpu.
Events are successfully sent.
To test it:
Compile with GCC 4.9.4:
I investigated with valgrind/callgrind, finding out
EventhubClientThread
is using the cpu.Adding a sleep in
EventhubClientThread
loop keeps the cpu idle:File: eventhubclient.c
I guess this isn't the right solution.