[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1737529510764837.png (6 KB, 424x81)
6 KB
6 KB PNG
previous: >>108492651

#define __NR_rt_sigsuspend        130

https://man7.org/linux/man-pages/man2/sigsuspend.2.html

tl;dr:
wait for a signal

i really thought this was going to temporarily block a signal, but nope lol. it blocks the thread while waiting for a signal. nevermind that we just had rt_sigtimedwait
it also temporarily updates the thread's sigset mask, which is something, i guess. still seems like a useless syscall imo
but, like all the others, since it's in there, *someone* must have (had?) a use for it
thankfully this is the last of the rt_* syscalls

relevant resources:
man man

man syscalls

https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/
>>
>>108500959
I guess you would use this if one thread has to wake up another one and you don't want to pout it in a loop idk.
>>
this is actually something that is perfect for my usecase. I have potentially multiple listeners that wait for updates on some data. I don't think I can use condition variables because I've written the program in D.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.