Updated
On this page
Mutex for MCP command execution.
#server.src.pixelweaver.mcp_lock
#server.src.pixelweaver.mcp_lock
Mutex for MCP command execution.
Prevents race conditions between concurrent MCP and UI mutations. Use as an async context manager: async with mcp_lock: ...
#MCPLock
Async mutex for serializing MCP tool execution.
#acquire
python
async def acquire(self) -> NoneAcquire the lock (blocks until available).
#release
python
def release(self) -> NoneRelease the lock.
#is_locked
python
def is_locked(self) -> boolWhether the lock is currently held.