cosmopolitan/tool/viz
Justine Tunney 2f48a02b44
Make recursive mutexes faster
Recursive mutexes now go as fast as normal mutexes. The tradeoff is they
are no longer safe to use in signal handlers. However you can still have
signal safe mutexes if you set your mutex to both recursive and pshared.
You can also make functions that use recursive mutexes signal safe using
sigprocmask to ensure recursion doesn't happen due to any signal handler

The impact of this change is that, on Windows, many functions which edit
the file descriptor table rely on recursive mutexes, e.g. open(). If you
develop your app so it uses pread() and pwrite() then your app should go
very fast when performing a heavily multithreaded and contended workload

For example, when scaling to 40+ cores, *NSYNC mutexes can go as much as
1000x faster (in CPU time) than the naive recursive lock implementation.
Now recursive will use *NSYNC under the hood when it's possible to do so
2024-09-10 00:08:59 -07:00
..
lib Remove callback from cosmoaudio API 2024-09-08 19:47:14 -07:00
ascii2utf8.c Apply clang-format update to repo () 2024-04-25 10:38:00 -07:00
basicidea.c Refactor some code 2024-05-26 06:03:50 -07:00
bd.c Apply clang-format update to repo () 2024-04-25 10:38:00 -07:00
bin2asm.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
bing.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
BUILD.mk Get printvideo audio working on Windows and MacOS 2024-09-06 06:48:55 -07:00
clock_accuracy.c Cull the examples folder 2023-10-11 21:45:32 -07:00
clock_nanosleep_accuracy.c Make recursive mutexes faster 2024-09-10 00:08:59 -07:00
cpuid.c Simplify memory manager 2024-07-05 05:47:15 -07:00
datauri.c Apply clang-format update to repo () 2024-04-25 10:38:00 -07:00
deathstar.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
derasterize.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
dumphexc.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
fixconsole.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
fliphex.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
fold.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
fontspace.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
generatetortureimage.c Bring back gc() function 2024-01-08 10:26:28 -08:00
getglyph.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
getifaddrs.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
hwcap.c Apply clang-format update to repo () 2024-04-25 10:38:00 -07:00
img.c Apply clang-format update to repo () 2024-04-25 10:38:00 -07:00
life.c Remove callback from cosmoaudio API 2024-09-08 19:47:14 -07:00
malloc_scalability.c Remove callback from cosmoaudio API 2024-09-08 19:47:14 -07:00
maxmind.c Run clang-format () 2024-06-01 16:30:43 -04:00
memzoom.c Remove callback from cosmoaudio API 2024-09-08 19:47:14 -07:00
od16.c Update stb () 2023-12-22 21:39:27 -08:00
printansi.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
printdos2errno.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
printimage.c Apply clang-format update to repo () 2024-04-25 10:38:00 -07:00
printvideo.c Remove callback from cosmoaudio API 2024-09-08 19:47:14 -07:00
rlimit.c Avoid linker conflicts on DescribeFoo symbols 2024-08-24 18:10:22 -07:00
setitimer_accuracy.c Apply clang-format update to repo () 2024-04-25 10:38:00 -07:00
tailf.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
unbing.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
vdsodump.c Make malloc scalable on all platforms 2024-08-15 23:32:53 -07:00
virtualquery.c Avoid linker conflicts on DescribeFoo symbols 2024-08-24 18:10:22 -07:00