diff options
author | wm4 <wm4@nowhere> | 2020-03-18 22:34:48 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-03-18 22:42:13 +0100 |
commit | cb82cbbbae99d5b8beebae76320a9097a2bc34f7 (patch) | |
tree | 144715054c3ac0ee203dcc23004e583923334961 /sub | |
parent | 373dad9962e4d7b23b95fc95bbbe811c8adafc92 (diff) | |
download | mpv-cb82cbbbae99d5b8beebae76320a9097a2bc34f7.tar.bz2 mpv-cb82cbbbae99d5b8beebae76320a9097a2bc34f7.tar.xz |
osdep: add a pthread debugging wrapper
Because pthread failures are virtually undebuggable (which sure is
pretty strange, given all these heavy instrumentation tools these days).
Of course it affects only files which include osdep/threads.h.
I'm departing from the usual way to add symbols with config.h and using
"#if", and defining it on the compiler command line + "#ifdef" because I
don't want to include config.h from a header (which would be necessary
in this case) to keep things slightly cleaner. Maybe this is misguided,
but still.
This would have been easier if mpv defined its own wrappers for all
thread functions. But we don't (which to be honest is probably better
than e.g. going crazy like VLC and essentially reimplementing
everything). This seems to be a good compromise. Since it's off by
default and basically a developer tool, the minor undefined behavior
(redefining reserved symbols) isn't much of an issue.
Diffstat (limited to 'sub')
0 files changed, 0 insertions, 0 deletions