tmux.WaitForModeLock
Go
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- tmux
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/server_exec.go
- WaitForModeLock : WaitForMode
-
WaitForModeLock acquires Channel's tmux mutex, queuing behind another locker if it is already held.
A cancelled or timed-out ctx while queued costs Channel one unlock: tmux hands the mutex to the next queued client whether or not it is still there, and the one that has gone cannot pass it on (cmd-wait-for.c cmd_wait_for_unlock). Unlocking again hands it to the next real locker, so a channel is not lost, but a program that abandons lock waits and counts its unlocks will deadlock on its own arithmetic.
0 declared, 0 inherited