#include #include #include extern "C" { LockHandle tt_lock_alloc_for_file(const char* path) { auto lock = tt::file::getLock(path); auto holder = new LockHolder(lock); return holder; } }