<div dir="ltr"><div>Hi!</div><div>I'm trying to understand if there's a way to properly unlock a sd_bus_wait() blocking call, as i need the thread where the call is performed to leave.</div><div>The cycle is something like:</div><div><br>while (!quit) {</div><div> r = sd_bus_process(signal_bus, NULL);</div><div> if (r > 0) {</div><div> continue;</div><div> }</div><div> r = sd_bus_wait(signal_bus, (uint64_t) -1);</div><div> if (r < 0) {</div><div> break;</div><div> }</div><div> }</div><div>close_bus();</div><div>pthread_exit(NULL);</div><div><br></div><div>The quit status is changed elsewhere.</div><div>Is there a way to achieve this thing?</div><div><br></div>Thank you very much for your time!<br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Federico</div></div></div></div></div>
</div>