The R Project SVN R

Rev

Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 71883
Line 1... Line 1...
1
% File src/library/base/man/reg.finalizer.Rd
1
% File src/library/base/man/reg.finalizer.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2014 R Core Team
3
% Copyright 1995-2017 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{reg.finalizer}
6
\name{reg.finalizer}
7
\alias{reg.finalizer}
7
\alias{reg.finalizer}
8
\alias{finalizer}
8
\alias{finalizer}
Line 40... Line 40...
40
}
40
}
41
\note{
41
\note{
42
  \R's interpreter is not re-entrant and the finalizer could be run in
42
  \R's interpreter is not re-entrant and the finalizer could be run in
43
  the middle of a computation.  So there are many functions which it is
43
  the middle of a computation.  So there are many functions which it is
44
  potentially unsafe to call from \code{f}: one example which caused
44
  potentially unsafe to call from \code{f}: one example which caused
45
  trouble is \code{\link{options}}.  As from \R 3.0.3 finalizers are
45
  trouble is \code{\link{options}}.  Finalizers are
46
  scheduled at garbage collection but only run at a relatively safe time
46
  scheduled at garbage collection but only run at a relatively safe time
47
  thereafter.
47
  thereafter.
48
}
48
}
49
\seealso{
49
\seealso{
50
  \code{\link{gc}} and \code{\link{Memory}} for garbage collection and
50
  \code{\link{gc}} and \code{\link{Memory}} for garbage collection and