[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


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1755444062027.jpg (107 KB, 800x1066)
107 KB JPG
previous: >>108737793

#define __NR_futex                    202
#define __NR_futex_waitv 449
#define __NR_futex_wake 454
#define __NR_futex_wait 455
#define __NR_futex_requeue 456

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

tl;dr:
fast userspace mutexes

i included the 400s calls, since they're related, but i don't think they actually exist yet? or at least, i couldn't find any documentation/manpages for them, so they're not fully integrated
i'm going to be honest with you. this manpage is really long, and i really couldn't possibly care less. i've said it many times in prior threads, but i hate multithreading. cannot stand it. if you really need these sorts of primitives, just use pthreads. don't torture yourself by using the syscalls. that's for fun things, like mmap or opening files. this is just miserable. pic very much related. if you've ever dug deep into standard library source code (especially for C++), you'll find yourself asking how the fuck these people live like this

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/
>>
File: angry cat noises.gif (487 KB, 717x454)
487 KB GIF
>"futex"
>no big fat cock



[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.