Exemple #1
0
Lock*
LockFact_Make_Shared_Lock_IMP(LockFactory *self, String *name,
                              int32_t timeout, int32_t interval) {
    LockFactoryIVARS *const ivars = LockFact_IVARS(self);
    return (Lock*)ShLock_new(ivars->folder, name, ivars->host, timeout,
                             interval);
}
SharedLock*
LockFact_make_shared_lock(LockFactory *self, const CharBuf *lock_name, 
                          i32_t timeout)
{
    return ShLock_new(self->folder, lock_name, self->agent_id, timeout);
}