PixelWeaver v0.5.0 /server.src.pixelweaver.mcp_lock
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) -> None

Acquire the lock (blocks until available).

#release

python
def release(self) -> None

Release the lock.

#is_locked

python
def is_locked(self) -> bool

Whether the lock is currently held.

Search