Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertp committed Jun 15, 2023
1 parent a5fbd17 commit 5c4f646
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,29 @@ trait Locking {
*/
def removeFileLock(file: File): Unit

/** Acquires a compilation write lock.
/** Acquires a compilation write lock and returns a timestamp when it succeeded.
*
* @return timestamp of when the lock was acquired
*/
def acquireWriteCompilationLock(): Long

/** Releases a compilation write lock.
*/
def releaseWriteCompilationLock(): Unit

/** Acquires a compilation read lock.
/** Acquires a compilation read lock and returns a timestamp when it succeeded.
*
* @return timestamp of when the lock was acquired
*/
def acquireReadCompilationLock(): Long

/** Releases a compilation read lock.
*/
def releaseReadCompilationLock(): Unit

/** Acquires a pending edits lock.
/** Acquires a pending edits lock and returns a timestamp when it succeeded.
*
* @return timestamp of when the lock was acquired
*/
def acquirePendingEditsLock(): Long

Expand All @@ -56,9 +62,10 @@ trait Locking {
*/
def releaseContextLock(contextId: UUID): Unit

/** Acquires a file lock.
/** Acquires a file lock and returns a timestamp when it succeeded.
*
* @param file a file to lock
* @return timestamp of when the lock was acquired
*/
def acquireFileLock(file: File): Long

Expand Down

0 comments on commit 5c4f646

Please sign in to comment.