History

lua+js: Implement utils.getpid()

Usable for uniquely identifying mpv instances from subprocesses, controlling mpv with AppleScript, ... Adds a new mp_getpid() wrapper for cross-platform reasons.

sfan5 committed 8 years ago

Commit 8f9785d1 parent f17246f5 files · +51 −0Browse files

Showing the changes to DOCS/man/javascript.rst (1 of 5 files). Show all

Unified · Split

DOCS/man/javascript.rst+2−0
@@ -180,6 +180,8 @@ Otherwise, where the Lua APIs return ``nil`` on error, JS returns ``undefined``. · 179 unmodified lines
180180
181181 ``mp.utils.subprocess_detached(t)``
182182
183+``mp.utils.getpid()`` (LE)
184+
183185 ``mp.add_hook(type, priority, fn)``
184186
185187 Additional utilities

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t