| is.timed | R Documentation |
The is.timed function tells if a boost.mutex
object has a timeout. The timeout function tells how long a mutex
will wait for a timeout.
is.timed(m)
## S4 method for signature 'boost.mutex'
is.timed(m)
m |
a |
is.timed returns TRUE if the object has a timeout and
FALSE otherwise. If a timeout has been set timeout returns
the number of seconds a boost.mutex object will attempt to acquire
a lock and NULL otherwise.
x = boost.mutex(timeout=5)
y = boost.mutex()
print(is.timed(x))
print(is.timed(y))
print(timeout(x))
print(timeout(y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.