I see; I suppose I can reasonably subclass PdBase in my own app and a mutex there, although libpd heavily uses phtread_mutex already, so libpd itself isn't really agnostic of framework.