/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Show HN: X11 tool to share a screen area in any video meeting
(github.com)
345 points
splitbrain
| 3 comments |
14 Oct 24 13:11 UTC
|
HN request time: 0.612s
|
source
1.
yazzku
◴[
14 Oct 24 17:04 UTC
]
No.
41839476
[source]
▶
>>41837204 (OP)
#
Can you not use std::condition_variable to avoid the active waiting of the signal?
replies(2):
>>41840920
#
>>41842565
#
ID:
GO
2.
quotemstr
◴[
14 Oct 24 19:21 UTC
]
No.
41840920
[source]
▶
>>41839476 (TP)
#
signalfd or ppoll or a million other options
3.
listeria
◴[
14 Oct 24 22:07 UTC
]
No.
41842565
[source]
▶
>>41839476 (TP)
#
I don't know if std::condition_variable is async-signal safe, but an easy fix is to replace the sleeping with pause(2). There's also sigwait(3), which wouldn't need a signal handler.
↑