Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Nov 22, 2023
1 parent b602702 commit ef17e4e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 18 deletions.
26 changes: 15 additions & 11 deletions R/sync.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ cv <- function() .Call(rnng_cv_alloc)
#' Condition Variables - Wait
#'
#' \code{wait} waits on a condition being signalled by completion of an
#' asynchronous receive or pipe event.
#' asynchronous receive or pipe event. \cr \code{wait_} is a variant that
#' allows user interrupts, suitable for interactive use.
#'
#' @param cv a 'conditionVariable' object.
#'
Expand All @@ -92,11 +93,6 @@ cv <- function() .Call(rnng_cv_alloc)
#'
wait <- function(cv) invisible(.Call(rnng_cv_wait, cv))

#' Condition Variables - Wait Safe
#'
#' \code{wait_} is identical to \code{wait} but allows user interrupts, thus
#' being safe for interactive use.
#'
#' @rdname cv
#' @export
#'
Expand All @@ -118,11 +114,6 @@ wait_ <- function(cv) invisible(.Call(rnng_cv_wait_safe, cv))
#'
until <- function(cv, msec) invisible(.Call(rnng_cv_until, cv, msec))

#' @rdname cv
#' @export
#'
.until <- until

#' Condition Variables - Value
#'
#' \code{cv_value} inspects the internal value of a condition variable.
Expand Down Expand Up @@ -161,6 +152,19 @@ cv_reset <- function(cv) invisible(.Call(rnng_cv_reset, cv))
#'
cv_signal <- function(cv) invisible(.Call(rnng_cv_signal, cv))

#' Condition Variables - Until
#'
#' This function is identical to \code{\link{until}} and deprecated.
#'
#' @inheritParams until
#'
#' @return (invisibly) logical TRUE if signalled, or else FALSE if the timeout
#' was reached.
#'
#' @export
#'
.until <- until

#' Pipe Notify
#'
#' Signals a 'conditionVariable' whenever pipes (individual connections) are
Expand Down
9 changes: 2 additions & 7 deletions man/cv.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions man/dot-until.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ef17e4e

Please sign in to comment.