1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-19 06:17:00 +00:00
mpv/DOCS
wm4 ef827af06c client API: add mpv_wait_async_requests()
This does what it's documented to do.

The implementation reuses the code in mpv_detach_destroy(). Due to the
way async requests currently work, just sending a synchronous dummy
request (like a "ignore" command) would be enough to ensure
synchronization, but this code will continue to work even if this
changes.

The line "ctx->event_mask = 0;" is removed, but it shouldn't be needed.
(If a client is somehow very slow to terminate, this could silence an
annoying queue overflow message, but all in all it does nothing.)

Calling mpv_wait_async_requests() and mpv_wait_event() concurrently is
in theory allowed, so change pthread_cond_signal() to
pthread_cond_broadcast() to avoid missed wakeups.

As requested in issue #1542.
2015-02-02 18:07:37 +01:00
..
client_api_examples manpage: minor changes 2015-01-23 17:41:50 +01:00
man ao_null: add emulation for certain broken behavior 2015-01-30 21:30:54 +01:00
client-api-changes.rst client API: add mpv_wait_async_requests() 2015-02-02 18:07:37 +01:00
compile-windows.md DOCS/compile-windows.md: fix pkg-config directory 2015-01-09 13:30:35 +11:00
contribute.md DOCS/contribute.md: remove unintentional headline 2014-12-11 21:33:01 +01:00
edl-mpv.rst Drop libquvi support 2014-10-25 20:18:22 +02:00
encoding.rst manpage: update config file locations 2014-06-28 15:55:09 +02:00
release-policy.md DOCS: mark the recent release in client-api-changes.rst 2014-08-12 23:01:19 +02:00
tech-overview.txt DOCS/tech-overview.txt: some updates 2014-08-18 01:21:13 +02:00
waf-buildsystem.rst DOCS/waf-buildsystem: add link to the Waf book 2014-02-06 13:45:35 +01:00