Table of Contents

Class BaseJournalFileLock

Namespace
OptunaSharp.Storages.Journal
Assembly
OptunaSharp.dll

Port of BaseJournalFileLock.

public abstract class BaseJournalFileLock
Inheritance
BaseJournalFileLock
Derived
Inherited Members

Methods

Acquire()

Blocks until the journal lock is acquired.

public abstract bool Acquire()

Returns

bool

True after acquiring exclusive ownership.

Exceptions

IOException

Lock creation fails for a reason other than an existing lock.

UnauthorizedAccessException

Lock-file or symbolic-link creation is denied.

Release()

Releases the currently owned journal lock.

public abstract void Release()

Exceptions

RuntimeError

The lock cannot be renamed and deleted, including when ownership was lost.